Skip to content

Instantly share code, notes, and snippets.

@bowei
Created November 29, 2017 19:11
Show Gist options
  • Save bowei/f8362ca325f19b66bcaad3049c34dc5f to your computer and use it in GitHub Desktop.
Save bowei/f8362ca325f19b66bcaad3049c34dc5f to your computer and use it in GitHub Desktop.
FROM alpine
RUN apk update
RUN apk add unbound bind-tools
COPY unbound.conf /etc/unbound/unbound.conf
server:
directory: "/etc/unbound"
username: root
logfile: "/unbound.log"
pidfile: "/unbound.pid"
verbosity: 2 # uncomment and increase to get more logging.
interface: 0.0.0.0
interface: ::0
access-control: 10.0.0.0/8 allow
access-control: 2001:DB8::/64 allow
# Bounce all requests with NXDOMAIN.
local-zone: "." always_nxdomain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment