도메인명(FQDN:Fully Qualified Domain Name)으로 정보를 알아볼 수 있는 명령이다.
nslookup보다 좀더 정확한 결과를 확인 할 수 있다.
root@lhrtest:/root># dig club.nate.com
;<<>>DiG 9.3.4-P1<<>>club.nate.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20419
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0
;; QUESTION SECTION:
;club.nate.com. IN A
;; ANSWER SECTION:
club.nate.com. 600 IN A 203.226.255.131
;; AUTHORITY SECTION:
nate.com. 600 IN NS ns1.nate.com.
nate.com. 600 IN NS ns2.nate.com.
nate.com. 600 IN NS ns3.nate.com.
;; Query time: 160 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May 19 11:57:47 2009
;; MSG SIZE rcvd: 101
root@lhr:/root/Log># dig cyhome.cyworld.com
;<<>>DiG 9.2.4<<>>cyhome.cyworld.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42808
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;cyhome.cyworld.com. IN A
;; ANSWER SECTION:
cyhome.cyworld.com. 3600 IN A 211.234.241.11
cyhome.cyworld.com. 3600 IN A 211.234.241.12
cyhome.cyworld.com. 3600 IN A 211.234.241.13
cyhome.cyworld.com. 3600 IN A 211.234.241.34
cyhome.cyworld.com. 3600 IN A 211.234.241.35
;; AUTHORITY SECTION:
cyworld.com. 3600 IN NS ns3.skcommunications.com.
cyworld.com. 3600 IN NS ns4.skcommunications.com.
cyworld.com. 3600 IN NS ns1.skcommunications.com.
cyworld.com. 3600 IN NS ns2.skcommunications.com.
;; ADDITIONAL SECTION:
ns1.skcommunications.com. 3600 IN A 203.226.254.232
ns2.skcommunications.com. 3600 IN A 203.226.254.233
ns3.skcommunications.com. 3600 IN A 124.137.97.17
ns4.skcommunications.com. 3600 IN A 124.137.97.18
;; Query time: 1 msec
;; SERVER: 192.168.191.136#53(192.168.191.136)
;; WHEN: Thu Oct 8 18:06:17 2009
;; MSG SIZE rcvd: 269
root@lhrtest:/root># nslookup club.nate.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: club.nate.com
Address: 203.226.255.131
root@lhr:/root/Log># nslookup cyhome.cyworld.com
Server: 12.18.11.16
Address: 12.18.11.16#53 -->등록되어 있는 DNS 서버
Name: cyhome.cyworld.com
Address: 211.234.241.34
Name: cyhome.cyworld.com
Address: 211.234.241.35
Name: cyhome.cyworld.com
Address: 211.234.241.11
Name: cyhome.cyworld.com
Address: 211.234.241.12
Name: cyhome.cyworld.com
Address: 211.234.241.13
카테고리 없음