change pihole dns server to self
This commit is contained in:
parent
de9d516f51
commit
dd19f3df90
@ -20,6 +20,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- 'pihole:/etc/pihole'
|
- 'pihole:/etc/pihole'
|
||||||
- 'dnsmasq:/etc/dnsmasq.d'
|
- 'dnsmasq:/etc/dnsmasq.d'
|
||||||
|
- './services/pihole/resolv.conf:/etc/resolv.conf'
|
||||||
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
|
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
|
||||||
|
|||||||
3
pihole/docker-compose/pihole/services/pihole/resolv.conf
Normal file
3
pihole/docker-compose/pihole/services/pihole/resolv.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
nameserver 127.0.0.1
|
||||||
|
nameserver 192.168.2.1
|
||||||
|
search .
|
||||||
Loading…
Reference in New Issue
Block a user