2018-05-12 23:40:58 +00:00
|
|
|
Unbound
|
|
|
|
=======
|
2018-06-28 18:23:50 +00:00
|
|
|
|
2018-06-28 19:17:54 +00:00
|
|
|
* /etc/unbound/unbound.conf
|
|
|
|
|
2018-06-28 18:23:50 +00:00
|
|
|
::
|
|
|
|
|
2018-06-30 17:20:09 +00:00
|
|
|
server:
|
2018-08-22 06:26:03 +00:00
|
|
|
access-control: 192.168.0.0/24 allow
|
|
|
|
access-control: 192.168.1.0/24 allow
|
2018-06-30 17:25:43 +00:00
|
|
|
do-ip4: yes
|
|
|
|
do-ip6: yes
|
|
|
|
do-tcp: yes
|
|
|
|
do-udp: yes
|
|
|
|
interface: 0.0.0.0
|
|
|
|
interface: ::0
|
|
|
|
rrset-roundrobin: yes
|
2018-06-30 17:20:09 +00:00
|
|
|
|
|
|
|
include: "/etc/unbound/unbound.conf.d/*.conf"
|
2018-06-28 19:35:52 +00:00
|
|
|
|
2018-06-30 17:25:43 +00:00
|
|
|
forward-zone:
|
|
|
|
name: "."
|
|
|
|
forward-addr: 9.1.2.3
|
|
|
|
forward-addr: 9.4.5.6
|
|
|
|
forward-addr: 9.7.8.9
|
|
|
|
|
2018-06-28 19:35:52 +00:00
|
|
|
* /etc/unbound/unbound.conf.d/redirect.conf
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2018-06-30 17:25:43 +00:00
|
|
|
server:
|
|
|
|
local-zone: "doubleclick.net" redirect
|
|
|
|
local-data: "doubleclick.net A 127.0.0.1"
|
2018-06-28 19:35:52 +00:00
|
|
|
|
|
|
|
* /etc/unbound/unbound.conf.d/static.conf
|
|
|
|
|
|
|
|
::
|
2018-06-28 19:17:54 +00:00
|
|
|
|
2018-06-30 17:25:43 +00:00
|
|
|
server:
|
|
|
|
local-zone: "sub.domain.tld" static
|
|
|
|
local-data: "sub.domain.tld 3600 IN A 1.2.3.4"
|
|
|
|
local-data: "sub.domain.tld 3600 IN A 5.6.7.8"
|
|
|
|
local-data-ptr: "1.2.3.4 sub.domain.tld"
|
|
|
|
local-data-ptr: "5.6.7.8 sub.domain.tld"
|