Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created September 23, 2014 12:49
Show Gist options
  • Save kaworu/9fef431c3023e885b25e to your computer and use it in GitHub Desktop.
Save kaworu/9fef431c3023e885b25e to your computer and use it in GitHub Desktop.
# Generated by local-unbound-setup
server:
username: unbound
directory: /var/unbound
chroot: /var/unbound
pidfile: /var/run/local_unbound.pid
auto-trust-anchor-file: /var/unbound/root.key
# from old unbound port config.
# verbosity number, 0 is least verbose. 1 is default.
verbosity: 1
# specify the interfaces to answer queries from by ip-address.
# The default is to listen to localhost (127.0.0.1 and ::1).
# specify 0.0.0.0 and ::0 to bind to all available interfaces.
# specify every interface[@port] on a new 'interface:' labelled line.
# The listen interfaces are not changed on reload, only on restart.
# interface: 192.0.2.153
# interface: 192.0.2.154
# interface: 192.0.2.154@5003
# interface: 2001:DB8::5
interface: 127.0.0.1
interface: ::1
interface: 2001:41d0:1:5db0::b:ff:1 # host <-> jails
# control which clients are allowed to make (recursive) queries
# to this server. Specify classless netblocks with /size and action.
# By default everything is refused, except for localhost.
# Choose deny (drop message), refuse (polite error reply),
# allow (recursive ok), allow_snoop (recursive and nonrecursive ok)
access-control: 0.0.0.0/0 refuse
access-control: 127.0.0.0/8 allow
access-control: ::0/0 refuse
access-control: ::1 allow
access-control: 2001:41d0:1:5db0::b:00:00/96 allow # jails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment