BIND : Verify Resolution2019/07/16 |
Restart BIND to apply changes and Verify name or Address Resolution.
|
|
[1] | Change DNS setting to refer to local DNS. |
root@dlp:~# systemctl restart bind9
root@dlp:~#
vi /etc/resolv.conf # change to own address domain srv.world search srv.world nameserver 10.0.0.30
|
[2] | Try to resolv Name or Address normally. |
root@dlp:~# dig dlp.srv.world. ; <<>> DiG 9.11.5-P4-5.1-Debian <<>> dlp.srv.world. ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55942 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ; COOKIE: 4d7dc810ee0afaa6c3256f115d2d4ffd9c70cf67412a4e9e (good) ;; QUESTION SECTION: ;dlp.srv.world. IN A ;; ANSWER SECTION: dlp.srv.world. 86400 IN A 10.0.0.30 ;; AUTHORITY SECTION: srv.world. 86400 IN NS dlp.srv.world. ;; Query time: 0 msec ;; SERVER: 10.0.0.30#53(10.0.0.30) ;; WHEN: Tue Jul 16 19:18:05 JST 2019 ;; MSG SIZE rcvd: 100root@dlp:~# dig -x 10.0.0.30 ; <<>> DiG 9.11.5-P4-5.1-Debian <<>> -x 10.0.0.30 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18132 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ; COOKIE: 777591e01deae66230c2736c5d2d5029a2956dbaf6ced141 (good) ;; QUESTION SECTION: ;30.0.0.10.in-addr.arpa. IN PTR ;; ANSWER SECTION: 30.0.0.10.in-addr.arpa. 86400 IN PTR dlp.srv.world. ;; AUTHORITY SECTION: 0.0.10.in-addr.arpa. 86400 IN NS dlp.srv.world. ;; ADDITIONAL SECTION: dlp.srv.world. 86400 IN A 10.0.0.30 ;; Query time: 0 msec ;; SERVER: 10.0.0.30#53(10.0.0.30) ;; WHEN: Tue Jul 16 19:18:49 JST 2019 ;; MSG SIZE rcvd: 136 |
Sponsored Link |