From 0d634e505160214eda58c5075d581c39db99d99a Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 21 Jun 2024 15:06:09 -0700 Subject: [PATCH] Unbound for container Signed-off-by: Tommy --- etc/docker/daemon.json | 26 +++++--------------------- etc/unbound/unbound.conf | 5 +++++ 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/etc/docker/daemon.json b/etc/docker/daemon.json index 8a2c3a8..3d705f4 100644 --- a/etc/docker/daemon.json +++ b/etc/docker/daemon.json @@ -30,26 +30,10 @@ "--network=host", "--host-uds=open" ] - }, - "runsc-kvm-debug": { - "path": "/usr/local/bin/runsc", - "runtimeArgs": [ - "--platform=kvm", - "--network=host", - "--debug-log=/tmp/runsc-kvm/", - "--debug", - "--strace" - ] - }, - "runsc-systrap-debug": { - "path": "/usr/local/bin/runsc", - "runtimeArgs": [ - "--platform=systrap", - "--network=host", - "--debug-log=/tmp/runsc-systrap/", - "--debug", - "--strace" - ] } - } + }, + "default-address-pools": [ + { "base": "242.242.0.0/16", "size": 24 } + ], + "dns" : [ "242.242.0.1" ] } \ No newline at end of file diff --git a/etc/unbound/unbound.conf b/etc/unbound/unbound.conf index 9b7ca1c..5292170 100644 --- a/etc/unbound/unbound.conf +++ b/etc/unbound/unbound.conf @@ -30,6 +30,11 @@ server: prefetch: yes prefetch-key: yes + ip-transparent: yes + interface: 127.0.0.1 + interface: 242.242.0.1 + access-control: 242.242.0.0/16 allow + forward-zone: name: "." forward-tls-upstream: yes