added useage of resolve.conf to point to upstream dns servers, this makes sure that unbound still caches properly while still letting me set the dns servers I want
This commit is contained in:
parent
d39cf4ed77
commit
68b1d93f37
@ -19,7 +19,6 @@ services:
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "80:80/tcp"
|
||||
#- "443:443/tcp"
|
||||
environment:
|
||||
TZ: "America/New_York"
|
||||
WEBPASSWORD: "password"
|
||||
@ -37,10 +36,8 @@ services:
|
||||
dns_net:
|
||||
ipv4_address: 172.20.0.7
|
||||
volumes:
|
||||
- $PWD/unbound/unbound.conf:/opt/unbound/etc/unbound/unbound.conf
|
||||
#ports:
|
||||
# - "5053:5053/tcp"
|
||||
# - "5053:5053/udp"
|
||||
- "$PWD/unbound/unbound.conf:/opt/unbound/etc/unbound/unbound.conf"
|
||||
- "$PWD/unbound/resolv.conf:/etc/resolv.conf"
|
||||
healthcheck:
|
||||
disable: true
|
||||
restart: always
|
||||
|
3
unbound/resolv.conf
Normal file
3
unbound/resolv.conf
Normal file
@ -0,0 +1,3 @@
|
||||
nameserver 1.1.1.1
|
||||
nameserver 1.0.0.1
|
||||
nameserver 9.9.9.9
|
@ -57,8 +57,8 @@ private-address: 10.0.0.0/8
|
||||
private-address: fd00::/8
|
||||
private-address: fe80::/10
|
||||
|
||||
forward-zone:
|
||||
name: "."
|
||||
forward-addr: 1.1.1.1
|
||||
forward-addr: 1.0.0.1
|
||||
forward-addr: 9.9.9.9
|
||||
#forward-zone:
|
||||
# name: "."
|
||||
# forward-addr: 1.1.1.1
|
||||
# forward-addr: 1.0.0.1
|
||||
# forward-addr: 9.9.9.9
|
||||
|
Loading…
Reference in New Issue
Block a user