EXAMPLE
An example config file is shown below. Copy this to /etc/unbound/unbound.conf and start the server with:
$ local-unbound -c /etc/unbound/unbound.conf
Most settings are the defaults. Stop the server with:
$ kill `cat /etc/unbound/unbound.pid`
Below is a minimal config file. The source distribution contains an extensive example.conf file with all the options.
# unbound.conf(5) config file for local-unbound(8).server:directory: "/etc/unbound"username: unbound# make sure local-unbound can access entropy from inside the chroot.# e.g. on linux the use these commands (on BSD, devfs(8) is used):# mount --bind -n /dev/random /etc/unbound/dev/random# and mount --bind -n /dev/log /etc/unbound/dev/logchroot: "/etc/unbound"# logfile: "/etc/unbound/unbound.log" #uncomment to use logfile.pidfile: "/etc/unbound/unbound.pid"# verbosity: 1 # uncomment and increase to get more logging.# listen on all interfaces, answer queries from the local subnet.interface: 0.0.0.0interface: ::0access-control: 10.0.0.0/8 allowaccess-control: 2001:DB8::/64 allow
selengkapnya bisa dilihat disini: