2017-06-19 02:57:26 +08:00
|
|
|
server:
|
2017-06-19 02:57:54 +08:00
|
|
|
verbosity: 1
|
2017-06-19 02:57:26 +08:00
|
|
|
interface: 0.0.0.0
|
|
|
|
interface: ::0
|
2018-09-30 20:43:18 +08:00
|
|
|
logfile: /dev/console
|
2017-06-19 02:57:26 +08:00
|
|
|
do-ip4: yes
|
|
|
|
do-ip6: yes
|
|
|
|
do-udp: yes
|
|
|
|
do-tcp: yes
|
|
|
|
do-daemonize: no
|
2018-10-12 17:35:45 +08:00
|
|
|
#access-control: 0.0.0.0/0 allow
|
2018-01-24 15:36:37 +08:00
|
|
|
access-control: 10.0.0.0/8 allow
|
|
|
|
access-control: 172.16.0.0/12 allow
|
|
|
|
access-control: 192.168.0.0/16 allow
|
2018-02-01 20:37:50 +08:00
|
|
|
access-control: fc00::/7 allow
|
2018-01-24 15:36:37 +08:00
|
|
|
access-control: fe80::/10 allow
|
2018-10-12 17:35:45 +08:00
|
|
|
#access-control: ::0/0 allow
|
2017-06-19 02:57:26 +08:00
|
|
|
directory: "/etc/unbound"
|
|
|
|
username: unbound
|
|
|
|
auto-trust-anchor-file: trusted-key.key
|
2018-10-12 16:56:17 +08:00
|
|
|
#private-address: 10.0.0.0/8
|
|
|
|
#private-address: 172.16.0.0/12
|
|
|
|
#private-address: 192.168.0.0/16
|
|
|
|
#private-address: 169.254.0.0/16
|
|
|
|
#private-address: fc00::/7
|
|
|
|
#private-address: fe80::/10
|
2017-06-19 02:57:26 +08:00
|
|
|
root-hints: "/etc/unbound/root.hints"
|
|
|
|
hide-identity: yes
|
|
|
|
hide-version: yes
|
|
|
|
max-udp-size: 4096
|
|
|
|
msg-buffer-size: 65552
|
2018-09-30 20:43:18 +08:00
|
|
|
|
|
|
|
remote-control:
|
|
|
|
control-enable: yes
|
|
|
|
control-interface: 127.0.0.1
|
|
|
|
control-port: 8953
|
|
|
|
server-key-file: "/etc/unbound/unbound_server.key"
|
|
|
|
server-cert-file: "/etc/unbound/unbound_server.pem"
|
|
|
|
control-key-file: "/etc/unbound/unbound_control.key"
|
|
|
|
control-cert-file: "/etc/unbound/unbound_control.pem"
|