From 68b1d93f3713ef4d3b8182a5d1e3927880547847 Mon Sep 17 00:00:00 2001 From: Michael Scalzetti Date: Wed, 15 Jun 2022 18:20:58 -0400 Subject: [PATCH] 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 --- docker-compose.yml | 7 ++----- unbound/resolv.conf | 3 +++ unbound/unbound.conf | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 unbound/resolv.conf diff --git a/docker-compose.yml b/docker-compose.yml index 9682262..2cd614b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/unbound/resolv.conf b/unbound/resolv.conf new file mode 100644 index 0000000..e2bbd1e --- /dev/null +++ b/unbound/resolv.conf @@ -0,0 +1,3 @@ +nameserver 1.1.1.1 +nameserver 1.0.0.1 +nameserver 9.9.9.9 diff --git a/unbound/unbound.conf b/unbound/unbound.conf index e084b3b..ec69e22 100644 --- a/unbound/unbound.conf +++ b/unbound/unbound.conf @@ -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