忍者ブログ

◆当blogは、Linuxサーバ構築する際の実際の設定手順を個人的メモとして記載しております。LinuC試験の役に立つ情報があるかも…?

LinuC(Linux技術者認定資格)&リナックスサーバ構築設定事例

   

【DNS動作確認】メモ

[root]# nslookup
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> reverie
Server:         192.168.0.99
Address:        192.168.0.99#53

Name:   reverie.example.com
Address: 192.168.0.99
> reverie.example.com
Server:         192.168.0.99
Address:        192.168.0.99#53

Name:   reverie.example.com
Address: 192.168.0.99
> www
Server:         192.168.0.99
Address:        192.168.0.99#53

www.example.com canonical name = reverie.example.com.
Name:   reverie.example.com
Address: 192.168.0.99
> www.example.com
Server:         192.168.0.99
Address:        192.168.0.99#53

www.example.com canonical name = reverie.example.com.
Name:   reverie.example.com
Address: 192.168.0.99
> mail
Server:         192.168.0.99
Address:        192.168.0.99#53

mail.example.com        canonical name = reverie.example.com.
Name:   reverie.example.com
Address: 192.168.0.99
> mail.example.com
Server:         192.168.0.99
Address:        192.168.0.99#53

mail.example.com        canonical name = reverie.example.com.
Name:   reverie.example.com
Address: 192.168.0.99
> ftp
Server:         192.168.0.99
Address:        192.168.0.99#53

ftp.example.com canonical name = reverie.example.com.
Name:   reverie.example.com
Address: 192.168.0.99
> ftp.example.com
Server:         192.168.0.99
Address:        192.168.0.99#53

ftp.example.com canonical name = reverie.example.com.
Name:   reverie.example.com
Address: 192.168.0.99
> 192.168.0.99
Server:         192.168.0.99
Address:        192.168.0.99#53

99.0.168.192.in-addr.arpa       name = reverie.example.com.
> example.com
Server:         192.168.0.99
Address:        192.168.0.99#53

Name:   example.com
Address: 192.168.0.0
> www.yahoo.co.jp
Server:         192.168.0.99
Address:        192.168.0.99#53

Non-authoritative answer:
www.yahoo.co.jp canonical name = www.ya.gl.yahoo.co.jp.
Name:  
www.ya.gl.yahoo.co.jp
Address: 203.216.247.249
> set type=MX
> example.com
Server:         192.168.0.99
Address:        192.168.0.99#53

example.com     mail exchanger = 10 reverie.example.com.
> set type=AXFR
> example.com
Server:         192.168.0.99
Address:        192.168.0.99#53

example.com
        origin = reverie.example.com
        mail addr = postmaster.example.com
        serial = 2010101901
        refresh = 10800
        retry = 3600
        expire = 604800
        minimum = 86400
example.com     mail exchanger = 10 reverie.example.com.
example.com     nameserver = reverie.example.com.
Name:   example.com
Address: 192.168.0.0
ftp.example.com canonical name = reverie.example.com.
Name:   localhost.example.com
Address: 127.0.0.1
mail.example.com        canonical name = reverie.example.com.
Name:   reverie.example.com
Address: 192.168.0.99
www.example.com canonical name = reverie.example.com.
example.com
        origin = reverie.example.com
        mail addr = postmaster.example.com
        serial = 2010101901
        refresh = 10800
        retry = 3600
        expire = 604800
        minimum = 86400
> exit
[root]# dig reverie.example.com
; <<>> DiG 9.2.1 <<>> reverie.example.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16532
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;reverie.example.com.           IN      A

;; ANSWER SECTION:
reverie.example.com.    86400   IN      A       192.168.0.99

;; AUTHORITY SECTION:
example.com.            86400   IN      NS      reverie.example.com.

;; Query time: 1 msec
;; SERVER: 192.168.0.99#53(192.168.0.99)
;; WHEN: Tue Oct 19 22:28:16 2010
;; MSG SIZE  rcvd: 67

[root]# dig -x 192.168.0.99
; <<>> DiG 9.2.1 <<>> -x 192.168.0.99
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44119
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

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

;; ANSWER SECTION:
99.0.168.192.in-addr.arpa. 86400 IN     PTR     reverie.example.com.

;; AUTHORITY SECTION:
0.168.192.in-addr.arpa. 86400   IN      NS      reverie.example.com.

;; ADDITIONAL SECTION:
reverie.example.com.    86400   IN      A       192.168.0.99

;; Query time: 1 msec
;; SERVER: 192.168.0.99#53(192.168.0.99)
;; WHEN: Tue Oct 19 22:28:48 2010
;; MSG SIZE  rcvd: 106

[root]# dig example.com mx
; <<>> DiG 9.2.1 <<>> example.com mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65275
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;example.com.                   IN      MX

;; ANSWER SECTION:
example.com.            86400   IN      MX      10 reverie.example.com.

;; AUTHORITY SECTION:
example.com.            86400   IN      NS      reverie.example.com.

;; ADDITIONAL SECTION:
reverie.example.com.    86400   IN      A       192.168.0.99

;; Query time: 0 msec
;; SERVER: 192.168.0.99#53(192.168.0.99)
;; WHEN: Tue Oct 19 22:30:27 2010
;; MSG SIZE  rcvd: 83

[root]# dig example.com axfr
; <<>> DiG 9.2.1 <<>> example.com axfr
;; global options:  printcmd
example.com.            86400   IN      SOA     reverie.example.com. postmaster.example.com. 2010101901 10800 3600 604800 86400
example.com.            86400   IN      MX      10 reverie.example.com.
example.com.            86400   IN      NS      reverie.example.com.
example.com.            86400   IN      A       192.168.0.0
ftp.example.com.        86400   IN      CNAME   reverie.example.com.
localhost.example.com.  86400   IN      A       127.0.0.1
mail.example.com.       86400   IN      CNAME   reverie.example.com.
reverie.example.com.    86400   IN      A       192.168.0.99
www.example.com.        86400   IN      CNAME   reverie.example.com.
example.com.            86400   IN      SOA     reverie.example.com. postmaster.example.com. 2010101901 10800 3600 604800 86400
;; Query time: 0 msec
;; SERVER: 192.168.0.99#53(192.168.0.99)
;; WHEN: Tue Oct 19 22:30:35 2010
;; XFR size: 11 records

[root]# tail /var/log/messages
Oct 19 22:17:37 reverie named[1455]: no IPv6 interfaces found
Oct 19 22:17:37 reverie named[1455]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 19 22:17:37 reverie named[1455]: listening on IPv4 interface eth0, 192.168.0.99#53
Oct 19 22:17:37 reverie named[1455]: command channel listening on 127.0.0.1#953
Oct 19 22:17:37 reverie named[1455]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2010101901
Oct 19 22:17:37 reverie named[1455]: zone 0.168.192.in-addr.arpa/IN: loaded serial 2010101901
Oct 19 22:17:37 reverie named[1455]: zone example.com/IN: loaded serial 2010101901
Oct 19 22:17:37 reverie named[1455]: running
Oct 19 22:26:26 reverie named[1455]: client 192.168.0.99#32772: transfer of 'example.com/IN': AXFR started
Oct 19 22:30:35 reverie named[1455]: client 192.168.0.99#32773: transfer of 'example.com/IN': AXFR started

[root]# dig example.com hinfo
; <<>> DiG 9.2.1 <<>> example.com hinfo
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40241
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;example.com.                   IN      HINFO

;; AUTHORITY SECTION:
example.com.            86400   IN      SOA     reverie.example.com. postmaster.example.com. 2010101901 10800 3600 604800 86400

;; Query time: 0 msec
;; SERVER: 192.168.0.99#53(192.168.0.99)
;; WHEN: Tue Oct 19 22:32:15 2010
;; MSG SIZE  rcvd: 84

[root]# dig www.yahoo.co.jp
; <<>> DiG 9.2.1 <<>> www.yahoo.co.jp
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22639
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 3

;; QUESTION SECTION:
;www.yahoo.co.jp.               IN      A

;; ANSWER SECTION:
www.yahoo.co.jp.        430     IN      CNAME   www.ya.gl.yahoo.co.jp.
www.ya.gl.yahoo.co.jp.  60      IN      A       203.216.235.201
;; AUTHORITY SECTION:
gl.yahoo.co.jp.         430     IN      NS      gns01.net.djm.yahoo.co.jp.
gl.yahoo.co.jp.         430     IN      NS      gns02.net.bbt.yahoo.co.jp.
gl.yahoo.co.jp.         430     IN      NS      gns01.net.bbt.yahoo.co.jp.

;; ADDITIONAL SECTION:
gns01.net.bbt.yahoo.co.jp. 430  IN      A       202.93.64.132
gns01.net.djm.yahoo.co.jp. 430  IN      A       124.83.159.36
gns02.net.bbt.yahoo.co.jp. 430  IN      A       202.93.64.133

;; Query time: 22 msec
;; SERVER: 192.168.0.99#53(192.168.0.99)
;; WHEN: Tue Oct 19 22:32:31 2010
;; MSG SIZE  rcvd: 197
PR

COMMENT

Name
Title
Mail(非公開)
URL
Color
Emoji Vodafone絵文字 i-mode絵文字 Ezweb絵文字
Comment
Pass   コメント編集に必要です
 管理人のみ閲覧

TRACKBACK

Trackback URL:

更新日付

03 2025/04 05
S M T W T F S
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 29 30

RECOMMEND

プロフィール

HN:
Account
HP:
性別:
非公開
職業:
--- NODATA ---
趣味:
--- NODATA ---
自己紹介:
◆当blogは、Linuxサーバ構築する際の実際の設定手順を個人的メモとして記載しております。LinuC試験の役に立つ情報があるかも…?

リンク

<<【自動起動(chkconfig)】の設定メモ  | HOME |  【DNS】の設定メモ>>
Copyright ©  -- LinuC(Linux技術者認定資格)&リナックスサーバ構築設定事例 --  All Rights Reserved
Design by CriCri / Photo by Melonenmann / powered by NINJA TOOLS / 忍者ブログ / [PR]