我有一个在子域上运行的专用服务器。我想将子域配置为 DNS。基本上,我使用 example.com 作为我的主要公司域。我会,可能有不止一台专用服务器,并希望它们成为s1
,s2
等等。
我通过 NS 条目重定向server.example.com
到另一个 DNS 提供商
server.example.com NS ns1.hostingcompany.example.com
server.example.com NS ns2.hostingcompany.example.com
我在那里设置了以下条目:
servers.example.com NS ns1.hostingcompany.example.com.
servers.example.com NS ns2.hostingcompany.example.com.
s1.servers.example.com NS ns1s1.servers.example.com.
s1.servers.example.com NS ns2s1.servers.example.com.
ns1s1.servers.example.com A 192.0.2.1
ns2s1.servers.example.com A 192.0.2.2
s1.servers.example.com A 192.0.2.1
但是,servers.example.com
没有A记录。我跳过了它,因为我只想将它用作分组DNS 条目。
一切似乎都正常,除了我在公司的本地绑定服务器。它不识别s1.servers.example.com
任何子域。当我切换到谷歌 DNS 时,它似乎工作正常。
问题是,如果这个设置是正确的并且会起作用吗?
注意:也许我不明白 NS 条目是如何工作的,据我所知,当域条目中存在 NS 服务器时,指向其他 DNS 服务器时,它被认为是“不要问我,问另一个服务器”并且 A 记录不是在这个链条中需要。