«   2020/02   »
            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
Archives
Today
45
Total
1,243,420
안정적인 DNS서비스 DNSEver
관리 메뉴

Blue Breeze

DNS 정보 조회 본문

IT/ETC...

DNS 정보 조회

푸른바람 C/H 2020. 2. 11. 08:30

DNS 정보 조회

dig 명령어 패키지 유틸리티 설치

yum -y install bind-utils

문법

dig [@server] [domain] [query type]

query-type 옵션
a 도메인의 아이피 정보
any 지정된 도메인의 모든 정보
mx 지정한 도메인의 메일서버 정보
ns 네임서버 정보
soa soa 정보

조회

도메인 조회

❯ dig dig google.com

; <<>> DiG 9.10.6 <<>> dig google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 60848
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1452
;; QUESTION SECTION:
;dig.                IN    A

;; AUTHORITY SECTION:
.            6059    IN    SOA    a.root-servers.net. nstld.verisign-grs.com. 2020021000 1800 900 604800 86400

;; Query time: 69 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Mon Feb 10 16:15:40 KST 2020
;; MSG SIZE  rcvd: 107

;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56708
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1452
;; QUESTION SECTION:
;google.com.            IN    A

;; ANSWER SECTION:
google.com.        220    IN    A    172.217.27.78

;; Query time: 5 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Mon Feb 10 16:15:40 KST 2020
;; MSG SIZE  rcvd: 55

네임서버 지정 조회

❯ dig @8.8.8.8 google.com

; <<>> DiG 9.10.6 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9934
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.            IN    A

;; ANSWER SECTION:
google.com.        299    IN    A    172.217.31.174

;; Query time: 105 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Feb 10 16:16:36 KST 2020
;; MSG SIZE  rcvd: 55

질의 추적

❯ dig google.com +trace

; <<>> DiG 9.10.6 <<>> google.com +trace
;; global options: +cmd
.            4812    IN    NS    d.root-servers.net.
.            4812    IN    NS    e.root-servers.net.
.            4812    IN    NS    f.root-servers.net.
.            4812    IN    NS    g.root-servers.net.
.            4812    IN    NS    h.root-servers.net.
.            4812    IN    NS    i.root-servers.net.
.            4812    IN    NS    j.root-servers.net.
.            4812    IN    NS    k.root-servers.net.
.            4812    IN    NS    l.root-servers.net.
.            4812    IN    NS    m.root-servers.net.
.            4812    IN    NS    a.root-servers.net.
.            4812    IN    NS    b.root-servers.net.
.            4812    IN    NS    c.root-servers.net.
.            4812    IN    RRSIG    NS 8 0 518400 20200222170000 20200209160000 33853 . kvTWx2TW/FGVJ3mHOUSypsdNwk5pCr5xW5CpRx07sl+WV850+5v9rRW9 ouo0+sb8GXuWIhQTF+7FkOYIOjYHe14xzb0N1O3lGbpx03jTsB+y8M9o 157y7MRONL1ki04SvZUou1Hj13MqgqG39+RmWIEzGL+X7M5/zn/fp9i9 TxczFvrrL9L8c+aR8/9bi13s5fVRznWIpiKv9BgxaGCeuqMYc5ZxvpKT HQn+nsciTPxxP5cUS3kmBxpBhHDRkkmqvb0EOMtcx26CzPOpaRydGnnN THmbFz7iQjddZjPXPTh9iFqaIy+0c0W7Nx/fqxDDfUaotRu5/AH5ct4y UkSyNw==
;; Received 717 bytes from 1.1.1.1#53(1.1.1.1) in 62 ms

com.            172800    IN    NS    a.gtld-servers.net.
com.            172800    IN    NS    b.gtld-servers.net.
com.            172800    IN    NS    c.gtld-servers.net.
com.            172800    IN    NS    d.gtld-servers.net.
com.            172800    IN    NS    e.gtld-servers.net.
com.            172800    IN    NS    f.gtld-servers.net.
com.            172800    IN    NS    g.gtld-servers.net.
com.            172800    IN    NS    h.gtld-servers.net.
com.            172800    IN    NS    i.gtld-servers.net.
com.            172800    IN    NS    j.gtld-servers.net.
com.            172800    IN    NS    k.gtld-servers.net.
com.            172800    IN    NS    l.gtld-servers.net.
com.            172800    IN    NS    m.gtld-servers.net.
com.            86400    IN    DS    30909 8 2 E2D3C916F6DEEAC73294E8268FB5885044A833FC5459588F4A9184CF C41A5766
com.            86400    IN    RRSIG    DS 8 1 86400 20200223050000 20200210040000 33853 . WVX4I4dqYXz2FScEAU/rapQV58X5U7mOePw4wYxN7jU8UU1m9J3jCv+o J+5khERZg1axZnYWSVbvFh/t+q1AIzBXOlpUappilqAU6PErXQRlsVVQ Khg6MkhsogdkVEJ63zRnUATUxAS87xu0SAc76TYZTNc1fLqXu0CMoccX x/594CUFTVlM3Rocx5zFSOeo7LQW8RSS2kjaxI7UFBD2jyrQJWJgR0v1 G8DhmmwfdtWTktf8+ihGghlZ7fOnd+zzj8kbiRBDnulVtrzXxOtocZP7 rCvZ+03rZxZBl4P8CfTeFUz4iyvZFNmSaGMbTMg1rigNoVXrARgKJDEL w5S6Qw==
;; Received 1170 bytes from 198.97.190.53#53(h.root-servers.net) in 183 ms

google.com.        172800    IN    NS    ns2.google.com.
google.com.        172800    IN    NS    ns1.google.com.
google.com.        172800    IN    NS    ns3.google.com.
google.com.        172800    IN    NS    ns4.google.com.
CK0POJMG874LJREF7EFN8430QVIT8BSM.com. 86400 IN NSEC3 1 1 0 - CK0Q1GIN43N1ARRC9OSM6QPQR81H5M9A  NS SOA RRSIG DNSKEY NSEC3PARAM
CK0POJMG874LJREF7EFN8430QVIT8BSM.com. 86400 IN RRSIG NSEC3 8 2 86400 20200215054817 20200208043817 56311 com. xe9g9xpfm5me3nPoh8UBmt50pWF9oGbO2ZGDV7k/6yp108FaBkHd52n8 w1SIPKwBAjVKH1GzsDRWhgMaV1bq97LkdJWYdSrAE+H3eJR376HBGe6L u8swByJn2uvtfCd8eK6XNvqD9ckKuMvb9Xt4epzQ++dR5VEHBNGMW4Gd aP3PYtlvoAhaPaXyKs0jzJx4kbMonLY67d9IyGyxlGj0jw==
S84BDVKNH5AGDSI7F5J0O3NPRHU0G7JQ.com. 86400 IN NSEC3 1 1 0 - S84EDELLAUPA96DT12TJKJN32334NGL3  NS DS RRSIG
S84BDVKNH5AGDSI7F5J0O3NPRHU0G7JQ.com. 86400 IN RRSIG NSEC3 8 2 86400 20200216055001 20200209044001 56311 com. nxt7wjq4d0nLtYeySrsLeKiOWRuQ+DBG9TevdUc28dchFe5GEi70H3cc PfbrNBZ4Z4/cThrRSdlQpGNO3hdRvNw52eopitUbGq2yHGcv5F4Dau2h VYngwt+Ofn1lInzHXAusM1k+qbrW1jw45mUuvTp8oUw6Jl0TMnWHoxh/ 7lwC9VosASQG41VWDzTnsuFRZ2oOEZKluKomjN12phEc+g==
;; Received 836 bytes from 192.52.178.30#53(k.gtld-servers.net) in 155 ms

google.com.        300    IN    A    172.217.31.142
;; Received 55 bytes from 216.239.36.10#53(ns3.google.com) in 59 ms

MX 레코드 확인

❯ dig mx google.com

; <<>> DiG 9.10.6 <<>> google.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28545
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1452
;; QUESTION SECTION:
;google.com.            IN    MX

;; ANSWER SECTION:
google.com.        600    IN    MX    20 alt1.aspmx.l.google.com.
google.com.        600    IN    MX    30 alt2.aspmx.l.google.com.
google.com.        600    IN    MX    40 alt3.aspmx.l.google.com.
google.com.        600    IN    MX    50 alt4.aspmx.l.google.com.
google.com.        600    IN    MX    10 aspmx.l.google.com.

;; Query time: 161 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Mon Feb 10 16:18:10 KST 2020
;; MSG SIZE  rcvd: 147

전체 정보 조회

❯ dig any google.com

; <<>> DiG 9.10.6 <<>> any google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOTIMP, id: 1928
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1452
;; QUESTION SECTION:
;google.com.            IN    ANY

;; Query time: 67 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Mon Feb 10 16:19:32 KST 2020
;; MSG SIZE  rcvd: 39

'IT > ETC...' 카테고리의 다른 글

DNS 정보 조회  (0) 2020.02.11
DNS  (0) 2020.02.10
사진으로 찍은 이미지 일괄 후 편집 툴 scan tailer  (0) 2017.12.13
rfc2119 - Key words for use in RFCs to Indicate Requirement Levels  (0) 2017.06.21
Headless Android  (0) 2017.03.13
알고리즘 복잡도  (0) 2016.12.02
0 Comments
댓글쓰기 폼