子域的胶水记录?

lba*_*anz 2 domain-name-system glue-record

假设我拥有 example.com

我创建了一个名为 dns.example.com 的 A 记录,然后将它指向一个名称服务器。在名称服务器上,我将其命名为 ns1.dns.example.com 和 dns.example.com

现在我很困惑。我是否创建 ns1.dns.example.com 或 dns.example.com 的胶水记录?我的 dns.example.com 还需要 A 记录吗?

sys*_*138 5

如果域的 NS 记录指向该域内的主机名,则您需要粘合记录。例如,这不需要粘合记录:

testing.example.com:
NS = ns1.infra.example.com.
NS = ns2.infra.example.com.
Run Code Online (Sandbox Code Playgroud)

哪里,这个需要胶水记录:

testing.example.com:
NS = ns1.testing.example.com.
NS = ns2.testing.example.com.
Run Code Online (Sandbox Code Playgroud)

在这种情况下,胶水记录进入example.com域。

example.com:
[...]
testing.example.com.     IN NS ns1.testing.example.com.
testing.example.com.     IN NS ns2.testing.example.com.
ns1.testing.example.com. IN  A 172.16.202.152
ns2.testing.example.com. IN  A 172.12.9.11
Run Code Online (Sandbox Code Playgroud)