You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should see a copy of your 20-dns.conflist displayed.
82
+
You should see a copy of your `20-dns.conflist` displayed.
73
83
74
-
3.0 Copy your [`10-dns.sh`] to `/data/on_boot.d`
75
-
3.1 Execute `chmod +x /data/on_boot.d/10-dns.sh`
76
-
3.2 Execute `/data/on_boot.d/10-dns.sh`
84
+
3. Set up `10-dns.sh`
85
+
1. Copy your [`10-dns.sh`] to `/data/on_boot.d`
86
+
2. Execute `chmod +x /data/on_boot.d/10-dns.sh`
87
+
3. Execute `/data/on_boot.d/10-dns.sh`
77
88
78
89
### Create directories for persistent Pi-hole configuration
79
90
80
-
4.0 Execute the following commands:
81
-
82
-
```sh
83
-
mkdir -p /data/etc-pihole
84
-
mkdir -p /data/pihole/etc-dnsmasq.d
85
-
```
86
-
87
-
### Create the pihole container
91
+
4. Execute the following commands:
92
+
```sh
93
+
mkdir -p /data/etc-pihole
94
+
mkdir -p /data/pihole/etc-dnsmasq.d
95
+
```
96
+
97
+
### Create the pihole container
88
98
89
99
Note:
90
-
--name MUST match the name you set in 10-dns.sh
91
-
-e FTLCONF_REPLY_ADDR4 MUST be in the range you set for your pihole network
92
-
-e TZ MUST match the timezone for your controller
100
+
*`--name` MUST match the name you setin`10-dns.sh`
101
+
*`-e FTLCONF_REPLY_ADDR4` MUST be in the range you setfor your pihole network
102
+
*`-e TZ` MUST match the timezone for your controller
93
103
94
104
The example uses these upstream DNS servers The following command sets the upstream DNS servers to `1.1.1.1` ([Cloudflare DNS](https://1.1.1.1/)) and `8.8.8.8` ([Google DNS](https://developers.google.com/speed/public-dns/)).
95
105
If you want to use different upstream DNS servers, change the following lines:
106
+
```
96
107
--dns=1.1.1.1 \
97
108
--dns=8.8.8.8 \
109
+
```
98
110
99
111
If you want to run a DHCP server as well you need to add the following lines:
112
+
```
100
113
--cap-add=NET_ADMIN
114
+
```
101
115
102
-
5.0 Run the following (or your modified version) by copy / pasting the entire set.
116
+
5. Run the following (or your modified version) by copy / pasting the entire set.
103
117
104
118
```sh
105
119
podman run -d \
@@ -128,16 +142,17 @@ If you want to run a DHCP server as well you need to add the following lines:
128
142
> ERRO[0022] unable to get systemd connection to start healthchecks: dial unix /run/systemd/private: connect: no such file or directory
129
143
> ```
130
144
131
-
6.0 Set the pihole admin password
145
+
6. Set the pihole admin password
132
146
133
147
```sh
134
148
podman exec -it pihole pihole -a -p YOURNEWPASSHERE
135
149
```
136
150
137
151
## Set the new DNS in your UDM
138
152
139
-
7.0 Update your DNS Servers to `10.0.5.3` (or your custom ip) for each of your Networks (UDM GUI | Networks | Advanced | DHCP Name Server)
140
-
7.1 Access the pihole web interface like you would normally, e.g. http://10.0.5.3 if using the example
153
+
7. Update DNS settings in UDM
154
+
1. Update your DNS Servers to `10.0.5.3` (or your custom ip) for each of your Networks (UDM GUI | Networks | Advanced | DHCP Name Server)
155
+
2. Access the pihole web interface like you would normally, e.g. http://10.0.5.3 if using the example
141
156
142
157
## Upgrading your PiHole container
143
158
@@ -176,7 +191,7 @@ DNS-over-TLS provider.
176
191
### PiHole with DoTe
177
192
178
193
Simply copy the `custom_pihole_dote.sh` script to `/data/scripts` and run it
179
-
to forward all DNS traffic over TLS to Cloudflare 1.1.1.1 / 1.0.0.1. You can modify the
194
+
to forward all DNS traffic over TLS to Cloudflare `1.1.1.1` / `1.0.0.1`. You can modify the
180
195
script to forward to different services with ease and full configuration
181
196
options including certificate pinning is available in the DoTe README here:
0 commit comments