跳转至

域名系统

The Domain Name System

域名系统(DNS)让你可以通过域名(如 )访问网站,而不必记住像 "212.78.1.25" 这样的数字互联网协议(IP)地址。IP 地址由你的计算机连接到互联网的位置决定。当你使用便携式计算机从一个地方移动到另一个地方时,每个新位置都会获得一个新的 IP 地址。由于没有人直接连接到你的便携计算机,因此 IP 地址的变化并不重要。但由于许多人连接到一个网络服务器,如果服务器移动到新位置并需要更改其 IP 地址,这将会非常不便。

当你的计算机通过域名地址与系统建立连接时,首先要查找与域名对应的 IP 地址。然后,计算机使用这个 IP 地址建立连接。

添加查找 DNS 地址的 IP 地址的单独步骤,也使得将服务器从一个位置移动到另一个位置变得更容易。服务器会被分配一个新的 IP 地址,并更新域名的条目。一旦 DNS 条目被更新,新请求将获得新的 IP 地址。由于最终用户通常通过域名访问大多数服务器,并且从未看到 IP 地址,因此服务器可以在不影响最终用户访问的情况下,移动到新的网络连接。

The Domain Name System lets you access websites by their domain name like (www.khanacademy.org), so you don't have to keep a list of numeric Internet Protocol (IP) addresses like "212.78.1.25". IP address are determined by where your computer connects to the Internet. When you have a portable computer and you move from one location to another, you get a new IP address at each new location. Since no one connects to your portable computer, it does not matter if your IP address changes from time to time. But since so many people connect to a web server, it would be inconvenient if the server moved to a new location and needed to change its IP address.

When your computer makes a connection to a system using a domain name address, the first thing your computer does is look up the IP address that corresponds to the domain name. Then your computer makes the connection using the IP address.

Adding the separate step of looking up the IP address for a DNS address also makes it easier to move a server from one location to another. The server is given a new IP address and the entry for the domain address is updated. Once the DNS entry is updated, new requests for the domain name are given the new IP address. Since end users access most servers using domain names and never see the IP address, a server can be moved to a new network connection without affecting the end user's ability to access the server.

域名分配

Allocating Domain Names

如果你还记得前一节,IP 地址是根据你将新网络连接到互联网的位置来分配的。而域名是基于拥有该域名的组织来分配的。在域名层级的顶端是一个名为互联网名称与数字地址分配机构(ICANN)的组织。ICANN 选择顶级域名(TLD),如 .com、.edu 和 .org,并将它们分配给其他组织进行管理。最近,一组新的顶级域名如 .club 和 .help 已经开始提供使用。

ICANN 还为全球各国分配了两字母的国家代码顶级域名,如 .us、.za、.nl 和 .jp。我们将这些称为国家代码顶级域名(ccTLDs)。各个国家通常会添加二级顶级域名,例如英国的 .co.uk,用于商业组织。申请任何特定 ccTLD 的政策在各国之间差异很大。

域名

一旦某个域名被分配给某个组织,控制该域名的组织有权在该域名下分配子域名。例如,.edu 顶级域名分配给 Educause 组织,Educause 会将像 umich.edu 这样的域名分配给高等教育机构。一旦密歇根大学获得 umich.edu 的控制权,它就可以在其新域名内自主选择子域名。以 .com 和 .org 结尾的域名可以由个人购买。个人域名所有者可以管理其域名,并为自己或他人创建子域名。

If you recall from the previous section, IP addresses are allocated based on where you connect a new network to the Internet. Domain names are allocated based on organizations that "own" the domain name. At the top of the domain name hierarchy is an organization called the International Corporation for Assigned Network Names and Numbers(ICANN). ICANN chooses the top-level domains (TLDs) like .com, .edu, and .org and assigns those to other organizations to manage. Recently a new set of TLDs like .club and .help have been made available.

ICANN also assigns two-letter country code top-level domain names like .us, .za, .nl, and .jp to countries around the world We call these Country-Code Top-Level Domain Names (ccTLDs). Countries often add second-level TLDs, like .co.uk for commercial organizations within the UK. Policies for applying for domain names with any particular ccTLD vary widely from one country to another.

Domain Names

Once a domain name is assigned to an organization, the controlling organization is allowed to assign subdomains within the domain. As an example, the .edu top-level domain is assigned to the Educause organization. Educause assigns domains like umich.edu to higher education institutions. Once the University of Michigan is given control of umich.edu, it can make its own choices for subdomains within its new domain. Domains ending in .com and .org can be purchased by individuals. The individual owners of those domains are allowed to manage their domain and create subdomains under it for their own use or use by others.

读取域名

Reading Domain Names

当我们查看一个 IP 地址,比如 "212.78.1.25" 时,左侧的前缀是“网络号码”,因此在某种意义上,我们是从左到右读取 IP 地址的,左侧部分是地址中最一般的部分,而右侧部分是最具体的部分:

212.78.1.25
广泛 ----> 狭窄

对于域名,我们是从右到左读取的:

drchuck.personal.si.umich.edu
狭窄       <---       广泛

这个域名中最一般的部分是 ".edu",表示高等教育机构。子域名 "umich.edu" 则是一个特定的高等教育机构。

When we look at an IP address like "212.78.1.25", the left prefix is the "Network Number", so in a sense we read IP addresses from left to right, where the left part of the IP address is the most general part of the address and right part of the address is most specific:

212.78.1.25
Broad ----> Narrow

For domain names, we read from right to left:

drchuck.personal.si.umich.edu
Narrow       <---       Broad

The most general part of this domain name is ".edu", which means higher education institutions. The subdomain "umich.edu" is a particular higher education institution.

总结

Summary

虽然域名系统并不是我们模型中的四个层次之一,但它是使互联网更易于使用的重要组成部分。域名允许最终用户使用符号名称来代替数字互联网协议地址。通过添加一个将域名映射到 IP 地址的服务,我们可以将服务器从一个互联网连接移动到另一个连接,而不需要用户手动更改其配置以连接到服务器。

如果您想为自己或您的公司购买域名,可以选择任意数量的域名注册商。

While the Domain Name System is not one of our four layers in the model, it is an important part of making the Internet easier to use. Domain names allow end users to use symbolic names for servers instead of numeric Internet Protocol addresses. By adding a service that maps domain names to IP addresses, we can move servers from one Internet connection to another connection without requiring users to manually change their configurations to connect to a server.

If you would like to purchase a domain name for yourself or your company, you can choose from any number of domain name registrars.

术语

Glossary

DNS: 域名系统。一个协议和服务器的系统,允许网络应用查找域名并检索对应的 IP 地址。

域名: 在顶级域内分配的名称。例如,khanacademy.org 是在 ".org" 顶级域内分配的域名。

ICANN: 国际分配网络名称和号码公司。负责互联网的顶级域名的分配和管理。

注册商: 可以注册、销售和托管域名的公司。

子域名: 在域名“下方”创建的名称。例如,"umich.edu" 是一个域名,而 "www.umich.edu" 和 "mail.umich.edu" 是 "umich.edu" 内的子域名。

TLD: 顶级域。域名最右侧的部分。示例 TLD 包括 ".com"、".org" 和 ".ru"。最近,添加了像 ".club" 和 ".help" 的新顶级域。

DNS: Domain Name System. A system of protocols and servers that allow networked applications to look up domain names and retrieve the corresponding IP address for the domain name.

domain name: A name that is assigned within a top-level domain. For example, khanacademy.org is a domain that is assigned within the ".org" top-level domain.

ICANN: International Corporation for Assigned Network Names and Numbers. Assigns and manages the top-level domains for the Internet.

registrar: A company that can register, sell, and host domain names.

subdomain: A name that is created "below" a domain name. For example, "umich.edu" is a domain name and both "www.umich.edu" and "mail.umich.edu" are subdomains within "umich.edu".

TLD: Top Level Domain. The rightmost portion of the domain name. Example TLDs include ".com", ".org", and ".ru". Recently, new top-level domains like ".club" and ".help" were added.

问题

Questions

您可以在线参加这个测验,网址是 http://www.net-intro.com/quiz/

  1. 域名系统的作用是什么?

    a) 允许网络连接的计算机使用文本名称来查找其 IP 地址

    b) 跟踪所有服务器的 GPS 坐标

    c) 允许区域互联网注册机构 (RIR) 管理各大洲的 IP 地址

    d) 为可移动计算机在不同 WiFi 之间移动时分配不同的 IP 地址

  2. 哪个组织分配顶级域名,如 ".com"、".org" 和 ".club"?

    a) IANA - 互联网分配号码管理局

    b) IETF - 互联网工程任务组

    c) ICANN - 国际分配网络名称和号码公司

    d) IMAP - 互联网映射授权协议

  3. 以下哪个是域名地址?

    a) 0f:2a:b3:1f:b3:1a

    b) 192.168.3.14

    c) www.khanacademy.org

    d) @drchuck

  4. 以下哪个不是域名所有者可以做的事情?

    a) 创建子域名

    b) 出售子域名

    c) 创建新的顶级域名

    d) 为域名或子域名分配 IP 地址

You can take this quiz online at http://www.net-intro.com/quiz/

  1. What does the Domain Name System accomplish?

    a) It allows network-connected computers to use a textual name for a computer and look up its IP address

    b) It keeps track of the GPS coordinates of all servers

    c) It allows Regional Internet Registries (RIRs) to manage IP addresses on the various continents

    d) It assigns different IP addresses to portable computers as they move from one WiFi to another

  2. What organization assigns top-level domains like ".com", ".org", and ".club"?

    a) IANA - Internet Assigned Numbers Authority

    b) IETF - Internet Engineering Task Force

    c) ICANN - International Corporation for Assigned Network Names and Numbers

    d) IMAP - Internet Mapping Authorization Protocol

  3. Which of these is a domain address?

    a) 0f:2a:b3:1f:b3:1a

    b) 192.168.3.14

    c) www.khanacademy.org

    d) @drchuck

  4. Which of these is not something a domain owner can do with their domain?

    a) Create subdomains

    b) Sell subdomains

    c) Create new top-level domains

    d) Assign an IP address to the domain or subdomain


最后更新: 2024年9月20日
创建日期: 2024年9月19日