小编Cat*_*lin的帖子

DNS子域委托问题

(用更详细的示例更新了帖子)


我的域名:example.com在 DNS 提供商 1 处设置。提供商 1 有域名服务器:

  1. ns1.dns1.com
  2. ns2.dns1.com

我想将subdomain.example.com的权限委托给另一个 DNS 提供商(提供商 2),该提供商拥有名称服务器:

  1. ns1.dns2.com
  2. ns2.dns2.com

为此,我在提供商 1 的区域如下所示:

example.com IN NS ns1.dns1.com
example.com IN NS ns2.dns1.com
example.com IN A 127.0.0.1
subdomain.example.com IN NS ns1.dns2.com
subdomain.example.com IN NS ns2.dns2.com
Run Code Online (Sandbox Code Playgroud)

在提供商 2 处,我设置了区域:subdomain.example.com,如下所示:

subdomain.example.com IN NS ns1.dns2.com
subdomain.example.com IN NS ns2.dns2.com
subdomain.example.com IN A 1.1.1.1
test.subdomain.example.com IN A 1.1.1.2
Run Code Online (Sandbox Code Playgroud)

考试:

# i get a reply (OK here)
dig a subdomain.example.com     

# i don't get a …
Run Code Online (Sandbox Code Playgroud)

domain-name-system subdomain dig

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

dig ×1

domain-name-system ×1

subdomain ×1