BIND起動/動作確認
1. BINDを起動します。
1 2 |
# systemctl start named # systemctl enable named |
2.正常に名前解決ができるかどうかの動作確認を行います。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# dig sv00.sjk.local ; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> sv00.sjk.local.local ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3701 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;sv00.sjk.local.local. IN A ;; ANSWER SECTION: sv00.sjk.local.local. 86400 IN A 192.168.12.240 ;; AUTHORITY SECTION: sjk-00.local. 86400 IN NS sv00.sjk.local. ;; Query time: 0 msec ;; SERVER: 192.168.12.240#53(192.168.12.240) ;; WHEN: 金 8月 05 20:11:57 JST 2016 ;; MSG SIZE rcvd: 74 # |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# dig -x 192.168.12.200 ; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> -x 192.168.12.200 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64314 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;200.12.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 200.12.168.192.in-addr.arpa. 86400 IN PTR sv00.sjk.local. ;; AUTHORITY SECTION: 12.168.192.in-addr.arpa. 86400 IN NS sv00.sjk.local. ;; ADDITIONAL SECTION: sv00.sjk.local. 86400 IN A 192.168.12.200 ;; Query time: 0 msec ;; SERVER: 192.168.12.200#53(192.168.12.200) ;; WHEN: 金 8月 05 20:14:39 JST 2016 ;; MSG SIZE rcvd: 115 # |