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/tcp"
|
||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
- "80:80/tcp"
|
- "80:80/tcp"
|
||||||
#- "443:443/tcp"
|
|
||||||
environment:
|
environment:
|
||||||
TZ: "America/New_York"
|
TZ: "America/New_York"
|
||||||
WEBPASSWORD: "password"
|
WEBPASSWORD: "password"
|
||||||
@ -37,10 +36,8 @@ services:
|
|||||||
dns_net:
|
dns_net:
|
||||||
ipv4_address: 172.20.0.7
|
ipv4_address: 172.20.0.7
|
||||||
volumes:
|
volumes:
|
||||||
- $PWD/unbound/unbound.conf:/opt/unbound/etc/unbound/unbound.conf
|
- "$PWD/unbound/unbound.conf:/opt/unbound/etc/unbound/unbound.conf"
|
||||||
#ports:
|
- "$PWD/unbound/resolv.conf:/etc/resolv.conf"
|
||||||
# - "5053:5053/tcp"
|
|
||||||
# - "5053:5053/udp"
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: true
|
disable: true
|
||||||
restart: always
|
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: fd00::/8
|
||||||
private-address: fe80::/10
|
private-address: fe80::/10
|
||||||
|
|
||||||
forward-zone:
|
#forward-zone:
|
||||||
name: "."
|
# name: "."
|
||||||
forward-addr: 1.1.1.1
|
# forward-addr: 1.1.1.1
|
||||||
forward-addr: 1.0.0.1
|
# forward-addr: 1.0.0.1
|
||||||
forward-addr: 9.9.9.9
|
# forward-addr: 9.9.9.9
|
||||||
|
Loading…
Reference in New Issue
Block a user