sudo apt install unbound
sudo nano /etc/unbound/unbound.conf
server:
verbosity: 1
interface: 0.0.0.0
do-ip4: yes
access-control: 0.0.0.0/0 allow
chroot: ""
hide-version: yes
key-cache-size: 0
cache-max-ttl: 0
private-address: 10.0.0.0/8
private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
private-domain: "example.com"
local-zone: "10.in-addr.arpa." nodefault
local-zone: "16.172.in-addr.arpa." nodefault
local-zone: "168.192.in-addr.arpa." nodefault
local-data: "ntp.example.com IN A 10.10.10.10"
stub-zone:
name: "habr.com"
stub-addr: 8.8.8.8
stub-addr: 8.8.4.4
stub-zone:
name: "10.in-addr.arpa"
stub-addr: 10.10.10.5
forward-zone:
name: "ocn.net.cn"
forward-host: ns02.example.com
forward-zone:
name: "."
forward-addr: 1.1.1.1
forward-addr: 8.8.8.8