实践DNS

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 本机的DNS是210.22.84.3
$ dig +trace math.stackexchange.com

; <<>> DiG 9.11.5-P4-1+eagle-Debian <<>> +trace math.stackexchange.com
;; global options: +cmd
.                       41962   IN      NS      m.root-servers.net.
.                       41962   IN      NS      i.root-servers.net.
.                       41962   IN      NS      g.root-servers.net.
.                       41962   IN      NS      f.root-servers.net.
.                       41962   IN      NS      d.root-servers.net.
.                       41962   IN      NS      h.root-servers.net.
.                       41962   IN      NS      k.root-servers.net.
.                       41962   IN      NS      j.root-servers.net.
.                       41962   IN      NS      b.root-servers.net.
.                       41962   IN      NS      e.root-servers.net.
.                       41962   IN      NS      c.root-servers.net.
.                       41962   IN      NS      l.root-servers.net.
.                       41962   IN      NS      a.root-servers.net.
;; Received 239 bytes from 210.22.84.3#53(210.22.84.3) in 2 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 20210311050000 20210226040000 42351 . IUalC78aFmoTZkimf5ujSxPGBkpXIjMJbWHoCPCnTaafKF3ZAXzKeNPq YGl+CkA7vpyFnj9VyYax+lLe0Wo5o/A5m7mdN9cWeXfVHlTljtVshlkJ JBzoSQ62Viuxy8TGFiWQ2Kl1l7iOZ8ZkioVcBcH43OSEREQ4tAxQ2gZc HAEvCspTWopRwk22MG0bycTTtqzuky6XEYDmeH3VQkjVl9AZGkkoj4/I eDUkTOjRXVxH0VHPLsPn8L8wtujnDPCIfQihvJ9uejBc48YMuuZyjNef y0j+CMT2WnxHbqc4n7G0lKRaGgAq7O++4erG5n2VTe6HJiP8J/ixi8Jd hRg1Cw==
;; Received 1182 bytes from 199.7.83.42#53(l.root-servers.net) in 26 ms

stackexchange.com.      172800  IN      NS      ns-925.awsdns-51.net.
stackexchange.com.      172800  IN      NS      ns-1832.awsdns-37.co.uk.
stackexchange.com.      172800  IN      NS      ns-cloud-d1.googledomains.com.
stackexchange.com.      172800  IN      NS      ns-cloud-d2.googledomains.com.
CK0POJMG874LJREF7EFN8430QVIT8BSM.com. 86400 IN NSEC3 1 1 0 - CK0Q1GIN43N1ARRC9OSM6QPQR81H5M9A NS SOA RRSIG DNSKEY NSEC3PARAM
CK0POJMG874LJREF7EFN8430QVIT8BSM.com. 86400 IN RRSIG NSEC3 8 2 86400 20210305054100 20210226043100 58540 com. KDtmd8qOjWqXn1QRmKcuLApb+1V14GNPoYJym3Myp6+fB7ZerqZi7NGP WBGZW2QJ7N6QVPih9xDOxjfzOefv6Uc0r8ipVR7sDy3ycFMwXBfCjW49 WZgHelXGUxhISPmV7/fQ8ZLZUi2a2voipDEme1GgJqnuxD33BlM9WmfJ 8WjtSPM7SKBsv7yeBwDrE3v6+YVo717AlogKGPHVvZFRJg==
4OTJBPMM3103AJD1H5IULI2BU3A4BU6A.com. 86400 IN NSEC3 1 1 0 - 4OTJPND3H2KD9P4RE57195J9UCA7J68Q NS DS RRSIG
4OTJBPMM3103AJD1H5IULI2BU3A4BU6A.com. 86400 IN RRSIG NSEC3 8 2 86400 20210302052301 20210223041301 58540 com. BnIIFJNuVbhb6xWtD+oS9lLyYf54gVI+5aiBmmVo5yAsqx/3ac5t0tUv mW/MfrB5FQDFiu9G9T6gB19rPYuHa8AYXgqlYaz1wQwaIFOrYVAu+l/4 lanxj+jOXcmB2DALZSeYFeDh53DSWlaOVuUCr4hm5wuRqtIDmu2prVlX uwEoY5RfryZlRRrUoi/uUHO7vQFA/7DlQ6pUwxtIYCgPzQ==
;; Received 825 bytes from 192.5.6.30#53(a.gtld-servers.net) in 214 ms

math.stackexchange.com. 3600    IN      A       151.101.193.69
math.stackexchange.com. 3600    IN      A       151.101.1.69
math.stackexchange.com. 3600    IN      A       151.101.65.69
math.stackexchange.com. 3600    IN      A       151.101.129.69
;; Received 115 bytes from 216.239.34.109#53(ns-cloud-d2.googledomains.com) in 313 ms

DNS 原理入门

Cloud DNS 文档

HTTPDNS

域名劫持