我正在从我公司的域名中删除一个子域名。 现在,我做DNS / BINDconfiguration已经有一段时间了,所以我需要你的帮助,以确保我的configuration是正确的/正确的:
所以,对于父域(比如example.com ),我应该添加以下内容:
mysub IN NS 123.231.111.222 ; This is fictitious public IP
然后在123.231.111.222上设置我自己的BIND服务器,其内容如下:
$TTL 600 $ORIGIN mysub.example.com. @ IN SOA ns1 hostmaster ( 2016051201 ; serial 1h ; slave refresh 5m ; slave retry 24h ; slave expiry 30m ; nxdomain ttl ) @ IN NS ns1 @ IN TXT "v=spf1 ...spf statements follow..." @ IN A 123.231.111.222 ns1 IN A 123.231.111.222 ; definition of various hosts in this subdomain follows
那么,我忘了/忽略了什么? 或者我犯了什么错误?
基本结构看起来不错,但NSlogging是假的。 目标必须始终指向一个名称,而不是IP地址。 假设你想要目标的名字存在于新创build的区域(根据你的例子),你还需要胶水logging。
第一区:
$ORIGIN example.com ; apex records omitted mysub IN NS ns1.mysub mysub IN NS ns2.mysub ns1.mysub IN A 203.0.113.1 ns2.mysub IN A 198.51.100.1
第二区:
$ORIGIN mysub.example.com. ; apex SOA omitted @ IN NS ns1 @ IN NS ns2 ns1 IN A 203.0.113.1 ns2 IN A 198.51.100.1
(是的,我很迂腐,在另一个networking上放置第二个名称服务器。)