DNS 域名系统
DNS(Domain Name System),域名系统是一个应用层的系统。它既是一个分布式系统,也可以看作一个协议。
DNS 记录
DNS 域名解析中 A、AAAA、CNAME、MX、NS、TXT、SRV、SOA、PTR 各项记录的作用 | IT 笔录
比如对 shaowang.me,常用的记录类型有:
| 类型 | 意义 |
|---|---|
| A | IPv4 地址 |
| AAAA | IPv6 地址 |
| CNAME | 指向另一个域名,比如说 shao-wang-me.github.io,这样访问 shaowang.me 就和访问后者一样,但是在地址栏还是 shaowang.me |
| MX | 邮箱服务器 |
-
Which transport layer protocol does DNS use?
DNS uses UDP. A 16-bit identifier is included in each query and copied to the response to match answers to the corresponding query.
-
Is DNS only used in application layer?
-
How are domain names managed?
-
Can one domain name be mapped to multiple IP addresses?
-
How does a domain resource record look like?
A domain resource record is a five-tuple in the form of
domain_name time_to_live class type value. -
What is a zone?
-
What is a root server?
-
What is a authoritative record and a non-authoritative one?
-
How does a name resolution work in action?
-
How does a reverse lookup work in action?
-
What are recursive query and iterative query?
-
How does DNS caching work?
Reference
Computer Networks, fifth edition, 9780132553179, by Andrew S. Tanenbaum & David J. Wetherall, 2011