我目前有2001:1973:2303 :: / 48分配给我,我将分配/ 64的客户
我想有一个/ 48的区域文件,我可以指向/redirect查询不同的名称服务器。
示例(期望的效果)
2001:1973:2303:1234::/64 -> ns1.example.com, ns2.example.com 2001:1973:2303:2345::/64 -> ns99.example2.com, ns100.example2.com 2001:1973:2303:4321::/64 -> ns1.cust1.com, ns2.cust1.com
当前/ 48区文件
$TTL 3h $ORIGIN 3.0.3.2.3.7.9.1.1.0.0.2.ip6.arpa. @ IN SOA ns3.example.ca. ns4.example.ca. ( 2011071030 ; serial 3h ; refresh after 3 hours 1h ; retry after 1 hour 1w ; expire after 1 week 1h ) ; negative caching TTL of 1 hour IN NS ns3.example.ca. IN NS ns4.example.ca. 1234 IN NS ns1.example.com. NS ns2.example.com. 2345 IN NS ns99.example2.com. NS ns100.example2.com. 4321 IN NS ns1.cust1.com. NS ns2.cust1.com.
我哪里错了? 我的要求似乎对我来说很简单。 把它放在防火墙方面,我想redirectstream量
客户端查询2001:1973:2303:4321 :: 1 – > ns3.example.ca查看请求并将查询redirect到ns1.cust1.com – > ns1.cust1.com通过omg.itworks.ca回答查询ns1.cust1.comconfiguration正确。
在你的例子中,你把地址的最后一部分写成一个数字。 在反向DNS中,您必须分别编写每个hex数字(并在必要时包含前导零。
要更正和扩展您的示例:
$TTL 3h $ORIGIN 3.0.3.2.3.7.9.1.1.0.0.2.ip6.arpa. @ IN SOA ns3.example.ca. ns4.example.ca. ( 2011071030 ; serial 3h ; refresh after 3 hours 1h ; retry after 1 hour 1w ; expire after 1 week 1h ) ; negative caching TTL of 1 hour NS ns3.example.ca. NS ns4.example.ca. 4.3.2.1 IN NS ns1.example.com. NS ns2.example.com. 5.4.3.2 IN NS ns99.example2.com. NS ns100.example2.com. 1.2.3.4 IN NS ns1.cust1.com. NS ns2.cust1.com. ; This would be for 2001:1973:2303:1::/64 1.0.0.0 IN NS ns1.example.org. NS ns2.example.org. ; This would be for 2001:1973:2303:10::/64 0.1.0.0 IN NS ns1.example.org. NS ns2.example.org. ; This would be for 2001:1973:2303:100::/64 0.0.1.0 IN NS ns1.example.org. NS ns2.example.org. ; This would be for 2001:1973:2303:1000::/64 0.0.0.1 IN NS ns1.example.org. NS ns2.example.org.
确定地址的完整反向DNS名称的一个非常有用的工具是sipcalc :
$ sipcalc -r 2001:1973:2303:ab::cafe -[ipv6 : 2001:1973:2303:ab::cafe] - 0 [IPV6 DNS] Reverse DNS (ip6.arpa) - efac0.0.0.0.0.0.0.0.0.0.0.0.ba0.0.3.0.3.2.3.7.9.1.1.0.0.2.ip6.arpa. -
不确定它会工作…但你可以尝试写入NS条目,如:
4.3.2.1 IN NS ns1.example.com. 4.3.2.1 IN NS ns2.example.com. 5.4.3.2 IN NS ns99.example2.com. 5.4.3.2 IN NS ns100.example2.com. 1.2.3.4 IN NS ns1.cust1.com. 1.2.3.4 IN NS ns2.cust1.com.
其他人指出你的基本错误,但要明确:
在您提供的区域文件中,您正在委派:
1234.3.0.3.2.3.7.9.1.1.0.0.2.ip6.arpa.
并不是:
4.3.2.1.3.0.3.2.3.7.9.1.1.0.0.2.ip6.arpa.
就DNS而言,这是一个完全有效(但唉,完全没用)的委托,所以当你这样做的时候不会有错误被标记出来。