设置名称服务器 - 如何?

发布于 2024-07-04 00:35:04 字数 207 浏览 3 评论 0原文

我了解当我运行自己的名称服务器时,如何通过编辑绑定配置来更改我的域的 dns 设置。 我知道我可以通过注册商的在线控制面板定义名称服务器。 但我不知道这部分是如何工作的......

我的注册商如何存储有关名称服务器的数据? 这是不是很聪明,比如他们有权在根名称服务器中存储 NS 记录?

我对这部分感到困惑,有人能解释一下吗?

I understand how I can change the dns settings for my domains by editing my bind configs, when I run my own name-servers. I know that I can define the name-servers with my registrar via their online control panels. But I have no idea how that part works...

How does my registrar store the data about the name-servers? Is it something clever, like them having the authority to store NS records in the root name-servers?

I'm confused by this part, can anyone explain?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

情魔剑神 2024-07-11 00:35:04

我刚刚看到这个:

# dig +trace ns stackoverflow.com 

; <<>> DiG 9.2.4 <<>> +trace ns stackoverflow.com
;; global options:  printcmd
.                       269431  IN      NS      B.ROOT-SERVERS.NET.
.                       269431  IN      NS      C.ROOT-SERVERS.NET.
.                       269431  IN      NS      D.ROOT-SERVERS.NET.
.                       269431  IN      NS      E.ROOT-SERVERS.NET.
.                       269431  IN      NS      F.ROOT-SERVERS.NET.
.                       269431  IN      NS      G.ROOT-SERVERS.NET.
.                       269431  IN      NS      H.ROOT-SERVERS.NET.
.                       269431  IN      NS      I.ROOT-SERVERS.NET.
.                       269431  IN      NS      J.ROOT-SERVERS.NET.
.                       269431  IN      NS      K.ROOT-SERVERS.NET.
.                       269431  IN      NS      L.ROOT-SERVERS.NET.
.                       269431  IN      NS      M.ROOT-SERVERS.NET.
.                       269431  IN      NS      A.ROOT-SERVERS.NET.
;; Received 504 bytes from 83.138.151.80#53(83.138.151.80) in 3 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.
;; Received 495 bytes from 192.228.79.201#53(B.ROOT-SERVERS.NET) in 145 ms

stackoverflow.com.      172800  IN      NS      ns51.domaincontrol.com.
stackoverflow.com.      172800  IN      NS      ns52.domaincontrol.com.
;; Received 119 bytes from 192.5.6.30#53(A.GTLD-SERVERS.NET) in 156 ms

这是否告诉我 stackoverflow.com 名称服务器已存储在 .com 名称服务器中?

或者只是他们现在恰好在那里?

I've just been shown this:

# dig +trace ns stackoverflow.com 

; <<>> DiG 9.2.4 <<>> +trace ns stackoverflow.com
;; global options:  printcmd
.                       269431  IN      NS      B.ROOT-SERVERS.NET.
.                       269431  IN      NS      C.ROOT-SERVERS.NET.
.                       269431  IN      NS      D.ROOT-SERVERS.NET.
.                       269431  IN      NS      E.ROOT-SERVERS.NET.
.                       269431  IN      NS      F.ROOT-SERVERS.NET.
.                       269431  IN      NS      G.ROOT-SERVERS.NET.
.                       269431  IN      NS      H.ROOT-SERVERS.NET.
.                       269431  IN      NS      I.ROOT-SERVERS.NET.
.                       269431  IN      NS      J.ROOT-SERVERS.NET.
.                       269431  IN      NS      K.ROOT-SERVERS.NET.
.                       269431  IN      NS      L.ROOT-SERVERS.NET.
.                       269431  IN      NS      M.ROOT-SERVERS.NET.
.                       269431  IN      NS      A.ROOT-SERVERS.NET.
;; Received 504 bytes from 83.138.151.80#53(83.138.151.80) in 3 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.
;; Received 495 bytes from 192.228.79.201#53(B.ROOT-SERVERS.NET) in 145 ms

stackoverflow.com.      172800  IN      NS      ns51.domaincontrol.com.
stackoverflow.com.      172800  IN      NS      ns52.domaincontrol.com.
;; Received 119 bytes from 192.5.6.30#53(A.GTLD-SERVERS.NET) in 156 ms

Does this tell me that the stackoverflow.com nameservers have been stored in the .com name servers?

Or is it just that they happen to be there now?

贱贱哒 2024-07-11 00:35:04

注册商负责设置根 DNS 条目,“当有人请求 stackoverflow.com 时,告诉他们权威 DNS 是 xxx.xxx.xxx.xxx”。 他们有一个界面,允许他们更改自己拥有的记录。

然后,请求者必须转到权威 DNS(即您向注册商指定的 DNS)来查找 stackoverflow.com 的 IP、其任何子域、电子邮件服务器以及与该域相关的其他 DNS 记录。

-亚当

The registrar is responsible for setting the Root DNS entry that says, "When someone asks for stackoverflow.com, tell them that the authoritative DNS is xxx.xxx.xxx.xxx". They have an interface that allows them to make changes to the records they own.

Then the requester must go to the authoritative DNS (Which is the one you specified to your registrar was your DNS) to find the IP for stackoverflow.com, any subdomain of it, email server, and other DNS records pertaining to that domain.

-Adam

天生の放荡 2024-07-11 00:35:04

到目前为止,答案中存在一些错误(我还没有足够的声誉来评论它们)。

  1. “.com”名称服务器与根名称服务器没有任何关系。 当您通过注册商更改 stackoverflow.com 的名称服务器时,更改将在“.com”名称服务器中进行。 根名称服务器不受影响。

  2. 有关注册管理机构均由 ICANN 选择的说法并不正确。 例如,ccTLD 注册管理机构(国家代码 TLD,如“.jp”或“.ca”)是在本地选择的,具体流程取决于国家/地区。

  3. 并非所有 TLD 都使用注册机构/注册商系统。

There are some mistakes in the answers so far (and I have not yet sufficient reputation to comment on them).

  1. The ".com" name servers are in no way related with the root name servers. When you change the name servers of stackoverflow.com, through your registrar, the change is made in the ".com" name servers. Root name servers are unaffected.

  2. It is not true that the registries are all chosen by ICANN. The ccTLD registries (country-code TLD like ".jp" or ".ca"), for instance, are chosen locally, by a process which depends on the country.

  3. Not all TLD use a registry/registrar system.

已下线请稍等 2024-07-11 00:35:04

抱歉,我帮不了什么忙,但是请转到 http://twit.tv,找到 Security Now 播客- 几周前他们在 DNS 上做了一个 - 获取第一个。 它对它的工作原理等有很好的解释(这可能会有所帮助)。

该网站上的第二个是关于它是如何被“黑客攻击”的 - 第一个是它是如何工作的。

稍微回答一下:

“根服务器”(例如 .com)保存了 stackoverflow.com 的记录。 但他们无法保存所有详细信息,因此他们有一个 NS 记录(名称服务器记录),上面写着“如果您想要更多信息,请去那里查看”。 因此,您的计算机向目标计算机 (ns1.stackoverflow.com) 询问 www.stackoverflow.com,并返回 A 记录(IP 地址)或 MX(邮件等)。

因此,您的域注册器会将其存储在数据库中或无论他们选择什么,当你进行更新时,他们会以某种方式(我不知道,但我猜它是由 NIC 发布的,但他们必须付费才能成为注册商,并进行检查等)将该更改推送到(集群的)根名称服务器。 然后,他们会将您的域的更改(例如 www 的位置、您的邮件的位置等)推送到其本地服务器,该服务器实际上提供域信息。

希望这有一定道理:)

这是否告诉我
stackoverflow.com 域名服务器有
已存储在 .com 名称服务器中?

是的,也不是。

就像您要为所有以 .com 结尾的内容调用查号服务一样。 你询问 stackoverflow - 他们告诉你“如果你想要这样,请拨打这个号码,他们可以告诉你如何联系 Jeff(www)、Joel(邮件)等”。

根服务器是第一个目录服务。 您的寄存器的名称服务器是第二次调用结束时的名称服务器(假设您调用了它:))

Sorry I can't help toooooo much, but go to http://twit.tv, and find the Security Now podcast - they did one a couple of weeks ago on DNS - get the first one. It has a good explanation of how it works etc (which may help).

The second one on that site is about how it's been "hacked" - the first one is the how it works.

To kinda answer it:

The "root servers" (for .com for eg) hold a record for stackoverflow.com. But they can't hold all the details, so they have an NS record (name server record) saying "if you want more info, go look over there". So your machine asks that target machine (ns1.stackoverflow.com) for www.stackoverflow.com, and gets back the A record (IP address), or MX (mail etc)

So, your domain register will store it in a database or whatever they chose, and when you do an update, they SOMEHOW (I dont know, but I guess it's published by NIC, but they DO have to pay to be a registrar, and be checked out etc) push that change to the (cluster of) root name servers. They would then push the changes for your domain (eg where www goes, where your mail goes etc) to their local server, which actually serves the domain info.

Hope that makes SOME sense :)

Does this tell me that the
stackoverflow.com nameservers have
been stored in the .com name servers?

Yes and no.

Its like you going calling directory assistance for everything ending in .com. You ask for stackoverflow - they tell you "if you want SO, call this number, and they can tell you how to get Jeff (www), Joel (mail), etc.".

The root server is the first directory assistance. Your register's name server is the one on the end of the second call (assuming you called it :) )

摘星┃星的人 2024-07-11 00:35:04

首先了解“注册商”和“注册管理机构”之间的区别可能会有所帮助。 注册商是一家向买家出售域名(即 godaddy)的公司。 任何人都可以成为注册员。 您可以成为注册商。

注册管理机构是维护域名主数据库的实体(由 ICANN 选择)。 那里有几个注册表。 互联网协会 (ISOC) 是所有 .org 名称的注册机构,Verisign 是所有 .com 和 .net 域名的注册机构。 还有其他一些,每个国家/地区都有一个属于自己的域。 所有注册商都访问并更新注册数据库。

注册管理机构负责维护顶级域 (TLD),它是最终的 DNS 服务器。 如果任何其他 DNS 服务器都无法解析域名解析请求,则该请求将被过滤至 TLD。 将其视为像树一样的层次结构,其中 TLD 是树干。 此时它将被解析为 IP 地址,否则将返回错误。

It may be helpful to understand the difference between a "registrar" and a "registry" to begin with. A registrar is a company that sells domain names (ie. godaddy) to buyers. Anyone can be a registrar. You can become a registrar.

A registry is an entity (chosen by ICANN) that maintains the master database of domain names. There are several registries out there. The Internet Society (ISOC) is the registry for all .org names, Verisign is the registry for all .com and .net domain names. There are others and each country has one for their domain. All the registrars access and update the registry databases.

A registry is responsible for maintaining the top level domain (TLD) which is the ultimate DNS server. A request to resolve a domain name, if it can't be resolved by any other DNS server will filter up to the TLD. Think of it as a hierarchy like a tree where the TLD is the trunk. At that point it will be resolved into an IP address or an error will be returned.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文