我在DNS服务器中定义了很多区域。我需要委托一个特定的区域到一个外部DNS服务器,我没有访问我的域名注册控制面板,目前。是否有一种绑定方式将整个区域的解析委托给另一个DNS服务器?
我认为只需在区域文件中命名外部服务器ns1.delegatenameserver.com是可能的,但它不起作用。
$TTL 3600
@ IN SOA ns1.delegatednameserver.com. hostmaster.ariel.org. (
2013120904 ;serial
3600 ;refresh
360 ;retry
86400 ;expire
3600 ;minimum
)
IN NS ns1.delegatednameserver.com.发布于 2016-06-07 10:10:05
从您的问题中还不完全清楚您的工作距离有多远,但是要委派子域,您必须控制它的父域。
因此,如果您控制example.com并希望将sub.example.com委托给另一个DNS,则必须执行以下操作:
在example.com的区域文件中
## this is the "glue" record
sub.example.com. IN NS ns1.sub.example.com.
ns1.sub.example.com. IN A 123.123.123.123 ;; IP address of the foreign DNS server to which you're delegating在外部DNS服务器中:
## you must have configured the sub.example.com zone
@ IN SOA ns1.sub.example.com. hostmaster.sub.example.com. (
2016060700 ;serial
3600 ;refresh
360 ;retry
86400 ;expire
3600 ;minimum
)
IN NS ns1.sub.example.com.
ns1.sub.example.com. IN A 123.123.123.123
www IN A 121.121.121.121
;; etc请注意,您只能正确地委托子域,要实现它,您必须控制它的高层域。
如果您无法控制较高级别的域,则仍然可以通过其他方式将负载/责任转移到域上。
假设您控制example.com在ns1.example.com (委托方),并希望委托给ns3.example.com (委托方)。
ns1.example.com中的区域文件中添加额外的NS记录,并设置主/从关系您的委派者名称服务器仍将收到请求,但一些客户端将访问委托方。您必须将example.com设置为ns3.example.com中的从区,其中包含主ns1.example.com,这样才能使其工作。您仍然可以在您的委派者名称服务器中控制example.com。
ns3.example.com您可以通过配置将接收到的每个请求转发到example.com:
zone "example.com" IN { type forward; forwarders { 122.122.122.122; }; }; // ns3.example.com您仍然将在您的委派者名称服务器上接收每个example.com请求,然后该服务器将发送请求,但区域内容的控制将完全由委托代理ns3.example.com控制。
在委托名称服务器中,必须将example.com配置为主区域。
的ns1.example.com
您可以将example.com设置为ns1.example.com中的从区,并使用主ns3.example.com。
这类似于上面的选项2,不同的是,ns3.example.com不会接收来自世界的任何DNS请求,而只是来自ns1.example.com的区域传输请求。ns1.example.com还保存了该区域的缓存副本,并且在ns3.example.com下降时仍将回答查询。
发布于 2014-02-20 18:23:26
此区域声明中缺少名称服务器的地址。
将以下内容添加到声明文件中。
ns1 IN A ip.of.delgated.serverhttps://unix.stackexchange.com/questions/115924
复制相似问题