Skip to content

Commit

Permalink
Unbound for container
Browse files Browse the repository at this point in the history
Signed-off-by: Tommy <[email protected]>
  • Loading branch information
TommyTran732 committed Jun 21, 2024
1 parent d883111 commit 0d634e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
26 changes: 5 additions & 21 deletions etc/docker/daemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
}
5 changes: 5 additions & 0 deletions etc/unbound/unbound.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d634e5

Please sign in to comment.