Ubuntu 10.04
Sponsored Link

動作確認
2010/07/19
  設定を反映させるため BIND を再起動して、正常に名前解決ができるかどうかの動作確認を行います。
root@ubuntu:~#
vi /etc/resolv.conf


# 追記:名前解決先に自身のIPを登録

nameserver 10.0.0.50


root@ubuntu:~#
/etc/init.d/bind9 restart

  * Stopping domain name service... bind9     [ OK ]
  * Starting domain name service... bind9     [ OK ]

root@ubuntu:~#
dig ubuntu.srv.world.


; <<>> DiG 9.7.0-P1 <<>> ubuntu.srv.world.
;; global options: +cmd
;; Got answer:
;; -<<HEADER>>- opcode: QUERY, status: NOERROR, id: 59019
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ubuntu.srv.world.     IN     A

;; ANSWER SECTION:
ubuntu.srv.world.     86400     IN     A     10.0.0.50

;; AUTHORITY SECTION:
srv.world.     86400     IN     NS     ubuntu.srv.world.

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Jul 19 18:49:05 2010
;; MSG SIZE rcvd: 67

root@ubuntu:~#
dig -x 10.0.0.50


; <<>> DiG 9.7.0-P1 <<>> -x 10.0.0.50
;; global options: +cmd
;; Got answer:
;; -<<HEADER>>- opcode: QUERY, status: NOERROR, id: 45767
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;50.0.0.10.in-addr.arpa.     IN     PTR

;; ANSWER SECTION:
50.0.0.10.in-addr.arpa.     86400     IN     PTR     ubuntu.srv.world.

;; AUTHORITY SECTION:
0.0.10.in-addr.arpa.     86400     IN     NS     ubuntu.srv.world.

;; ADDITIONAL SECTION:
ubuntu.srv.world.     86400     IN     A     10.0.0.50

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Jul 19 18:55:27 2010
;; MSG SIZE rcvd: 103
関連コンテンツ
 
Tweet