-
Notifications
You must be signed in to change notification settings - Fork 0
/
pihole-dot-doh.xml
168 lines (168 loc) · 8.2 KB
/
pihole-dot-doh.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?xml version="1.0"?>
<Container version="2">
<Name>Pihole-DoT-DoH</Name>
<Repository>testdasi/pihole-dot-doh:latest</Repository>
<Registry>https://hub.docker.com/r/testdasi/pihole-dot-doh/</Registry>
<Network>br0</Network>
<MyIP>192.168.1.24</MyIP>
<Shell>bash</Shell>
<Privileged>false</Privileged>
<Support>https://forums.unraid.net/topic/96233-support-testdasi-repo/</Support>
<Project>https://docs.pi-hole.net/guides/dns-over-https/</Project>
<Overview>
Pi-Hole - let's block those pesky ads! Now with DNS-over-HTTPS and DNS-over-TLS! pihole.doh!
Don't send your DNS queries in plain text.

YOU MUST ASSIGN A STATIC IP TO THE DOCKER FOR PIHOLE TO WORK.

You must set both DNS1 and DNS2 variables to 127.1.1.1#5153 (DoH) and/or 127.2.2.2#5253 (DoT). To use just DoH or just DoT, set both DNS1 and DNS2 to the same value.

Otherwise, same instructions as official Pi-Hole.

NOTE 1: Port 53 can only be used with custom br0/br1 network and a static IP address.

NOTE 2: DNS lookup rarely ever works with ports other than 53 i.e. see note above about static IP.

NOTE 3: UnRaid network settings DNS server cannot point to a docker IP.

</Overview>
<Category>Security: Other: Network:DNS Status:Stable</Category>
<WebUI>http://[IP]:[PORT:80]/admin</WebUI>
<TemplateURL>https://raw.githubusercontent.com/testdasi/testdasi-unraid-repo/master/pihole-dot-doh.xml</TemplateURL>
<Icon>https://raw.githubusercontent.com/testdasi/pihole-base-buster-plus/master/pi_hole_bw.png</Icon>
<ExtraParams>--cap-add=NET_ADMIN --restart=unless-stopped</ExtraParams>
<PostArgs/>
<CPUset/>
<DateInstalled>1599861527</DateInstalled>
<DonateText>If you like my work, a donation to my burger fund is very much appreciated.</DonateText>
<DonateLink>https://paypal.me/mersenne</DonateLink>
<Description>
Pi-Hole - let's block those pesky ads! Now with DNS-over-HTTPS and DNS-over-TLS! pihole.doh!
Don't send your DNS queries in plain text.

YOU MUST ASSIGN A STATIC IP TO THE DOCKER FOR PIHOLE TO WORK.

You must set both DNS1 and DNS2 variables to 127.1.1.1#5153 (DoH) and/or 127.2.2.2#5253 (DoT). To use just DoH or just DoT, set both DNS1 and DNS2 to the same value.

Otherwise, same instructions as official Pi-Hole.

NOTE 1: Port 53 can only be used with custom br0/br1 network and a static IP address.

NOTE 2: DNS lookup rarely ever works with ports other than 53 i.e. see note above about static IP.

NOTE 3: UnRaid network settings DNS server cannot point to a docker IP.

</Description>
<Networking>
<Mode>bridge</Mode>
<Publish>
<Port>
<HostPort>53</HostPort>
<ContainerPort>53</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
<Port>
<HostPort>53</HostPort>
<ContainerPort>53</ContainerPort>
<Protocol>udp</Protocol>
</Port>
<Port>
<HostPort>67</HostPort>
<ContainerPort>67</ContainerPort>
<Protocol>udp</Protocol>
</Port>
<Port>
<HostPort>80</HostPort>
<ContainerPort>80</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
<Port>
<HostPort>443</HostPort>
<ContainerPort>443</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
</Publish>
</Networking>
<Data>
<Volume>
<HostDir>/mnt/user/appdata/pihole-dot-doh/pihole/</HostDir>
<ContainerDir>/etc/pihole/</ContainerDir>
<Mode>rw</Mode>
</Volume>
<Volume>
<HostDir>/mnt/user/appdata/pihole-dot-doh/dnsmasq.d/</HostDir>
<ContainerDir>/etc/dnsmasq.d/</ContainerDir>
<Mode>rw</Mode>
</Volume>
<Volume>
<HostDir>/mnt/user/appdata/pihole-dot-doh/config/</HostDir>
<ContainerDir>/config/</ContainerDir>
<Mode>rw</Mode>
</Volume>
</Data>
<Environment>
<Variable>
<Value>127.1.1.1#5153</Value>
<Name>DNS1</Name>
<Mode/>
</Variable>
<Variable>
<Value>127.2.2.2#5253</Value>
<Name>DNS2</Name>
<Mode/>
</Variable>
<Variable>
<Value>Europe/London</Value>
<Name>TZ</Name>
<Mode/>
</Variable>
<Variable>
<Value>password</Value>
<Name>WEBPASSWORD</Name>
<Mode/>
</Variable>
<Variable>
<Value>eth0</Value>
<Name>INTERFACE</Name>
<Mode/>
</Variable>
<Variable>
<Value>192.168.1.24</Value>
<Name>ServerIP</Name>
<Mode/>
</Variable>
<Variable>
<Value/>
<Name>ServerIPv6</Name>
<Mode/>
</Variable>
<Variable>
<Value>False</Value>
<Name>IPv6</Name>
<Mode/>
</Variable>
<Variable>
<Value>all</Value>
<Name>DNSMASQ_LISTENING</Name>
<Mode/>
</Variable>
</Environment>
<Labels/>
<Config Name="DNS Port TCP" Target="53" Default="53" Mode="tcp" Description="Container Port: 53" Type="Port" Display="always" Required="true" Mask="false">53</Config>
<Config Name="DNS Port UDP" Target="53" Default="53" Mode="udp" Description="Container Port: 53" Type="Port" Display="always" Required="true" Mask="false">53</Config>
<Config Name="DHCP Port" Target="67" Default="67" Mode="udp" Description="Container Port: 67" Type="Port" Display="always" Required="true" Mask="false">67</Config>
<Config Name="HTTP Port" Target="80" Default="80" Mode="tcp" Description="Container Port: 80" Type="Port" Display="always" Required="true" Mask="false">80</Config>
<Config Name="HTTPS Port" Target="443" Default="443" Mode="tcp" Description="Container Port: 443" Type="Port" Display="always" Required="true" Mask="false">443</Config>
<Config Name="pihole config" Target="/etc/pihole/" Default="/mnt/user/appdata/pihole-dot-doh/pihole/" Mode="rw" Description="Container Path: /etc/pihole/" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/pihole-dot-doh/pihole/</Config>
<Config Name="dnsmasq config" Target="/etc/dnsmasq.d/" Default="/mnt/user/appdata/pihole-dot-doh/dnsmasq.d/" Mode="rw" Description="Container Path: /etc/dnsmasq.d/" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/pihole-dot-doh/dnsmasq.d/</Config>
<Config Name="DoT DoH config" Target="/config/" Default="/mnt/user/appdata/pihole-dot-doh/config/" Mode="rw" Description="Container Path: /config/" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/pihole-dot-doh/config/</Config>
<Config Name="ENV 1" Target="DNS1" Default="127.1.1.1#5153" Mode="" Description="Container Variable: DNS1" Type="Variable" Display="always" Required="true" Mask="false">127.1.1.1#5153</Config>
<Config Name="ENV 2" Target="DNS2" Default="127.2.2.2#5253" Mode="" Description="Container Variable: DNS2" Type="Variable" Display="always" Required="true" Mask="false">127.2.2.2#5253</Config>
<Config Name="ENV 3" Target="TZ" Default="Europe/London" Mode="" Description="Container Variable: TZ" Type="Variable" Display="always" Required="false" Mask="false">Europe/London</Config>
<Config Name="ENV 4" Target="WEBPASSWORD" Default="password" Mode="" Description="Container Variable: WEBPASSWORD" Type="Variable" Display="always" Required="false" Mask="false">password</Config>
<Config Name="ENV 5" Target="INTERFACE" Default="eth0" Mode="" Description="Container Variable: INTERFACE" Type="Variable" Display="always" Required="false" Mask="false">eth0</Config>
<Config Name="ENV 6" Target="ServerIP" Default="192.168.1.24" Mode="" Description="Container Variable: ServerIP" Type="Variable" Display="always" Required="false" Mask="false">192.168.1.24</Config>
<Config Name="ENV 7" Target="ServerIPv6" Default="" Mode="" Description="Container Variable: ServerIPv6" Type="Variable" Display="always" Required="false" Mask="false"/>
<Config Name="ENV 8" Target="IPv6" Default="False" Mode="" Description="Container Variable: IPv6" Type="Variable" Display="always" Required="false" Mask="false">False</Config>
<Config Name="ENV 9" Target="DNSMASQ_LISTENING" Default="all" Mode="" Description="Container Variable: DNSMASQ_LISTENING" Type="Variable" Display="always" Required="false" Mask="false">all</Config>
</Container>