Код: Выделить всё
root@router:/var/unbound # drill dns.google.com
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 45757
;; flags: qr rd ra ; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; dns.google.com. IN A
;; ANSWER SECTION:
dns.google.com. 900 IN A 8.8.8.8
dns.google.com. 900 IN A 8.8.4.4
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 16 msec
;; SERVER: 127.0.0.1
;; WHEN: Wed Nov 2 10:33:23 2022
;; MSG SIZE rcvd: 64
root@router:/var/unbound # drill -x 8.8.8.8
Error: error sending query: Could not send or receive, because of network error
Код: Выделить всё
# 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
interface: 192.168.1.1
interface: 127.0.0.1
access-control: 192.168.1.0/24 allow
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: no
username: unbound
logfile: "unbound.log"
use-syslog: no
do-not-query-localhost: no
remote-control:
control-enable: yes
include: /var/unbound/forward.conf
include: /var/unbound/lan-zones.conf
include: /var/unbound/conf.d/*.conf
Код: Выделить всё
forward-zone:
name: .
forward-addr: 8.8.8.8