Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.66 KB

DNS.md

File metadata and controls

34 lines (23 loc) · 1.66 KB

DNS

Domain Name System for short is DNS.

use to map human-friendly domain name to service on internet.

Domain Name Space

is a tree structure.

Each node or leaf has a label and zero or more Resource Record(RR)

CONCLUTION

DNSDomain Name System域名系统.

功能

简单来说这个系统的目的是提供通过域名查询到域名对应的ip地址的能力。

域名语法结构

A domain name consists of some label and delimiter. For example, www.github.com, as the below diagram. com is top level domain(TLD), github is second level domain(SLD),www is sub level domain(SLD). www,github,com are labels, the dot between them in domain name,are delimiter.

sub domain name second domain name top domain name
www github com

实现

域名系统由很多域名服务器组成。并以由上至下的分层结构组织。

Authorative Name Server

域名系统把分配域名及映射这些域名到互联网资源的权力代理给各域的权威域名服务器。这些服务器管理员可以把被授权的域名空间的子域代理给其他域名服务器。这个机制提供的分布式、容错能力避免了单一庞大的中央数据库。一个域名服务器存储了对应域的DNS记录,并使用这些记录对域名检索请求做出回应。

DNS 记录格式

主要包括 SOA、A、AAAA、SMTP、NS、PTR、CNAME,这些记录被存储在一个结构化的文本文件中,这个文件也被称为Zone file。

SOA(Start Of Authority)

包含对应域的管理信息,