options语句的定义和使用:
根据RFC4159规范描述,ip6.int格式已经废弃,原文如下:
As of 1 September 2005, the IETF advises the community that the DNS domain "ip6.int" should no longer be used to perform reverse mapping of IPv6 addresses to domain names, and that the domain "ip6.arpa" should be used henceforth, in accordance with the IANA Considerations described in [RFC3596]. The domain "ip6.int" is deprecated, and its use in IPv6 implementations that conform to the IPv6 Internet Standards is discontinued.
配置AAAA 记录
AAAA 记录和IPV4 的A 记录相似,需要在BIND的各个zone中进行配置。它在一个单独的记录中设定了全部地址。例如:
- $ORIGIN 10658123.cn.
- www.10658123.cn. 3600 IN AAAA 8888::A18
使用Nibble 格式进行IPv6地址到域名的反向查询
虽然不建议使用Nibble 格式查找名字,但它能向下兼容支持现有的IPV6 应用。当解析一个nibble 格式的地址时,地址块被简单的翻转了,在名字的结果后面附加上一个ip6.arpa.(RFC 4159规范说明),就象在IPv4 中一样。例如,下面的例子会为一台主机提供反转名称查询,地址是2001:1234:5678:1:987::2
- more DefaultView.1.0.0.0.8.7.6.5.4.3.2.1.1.0.0.2.ip6.arpa.hosts
$ORIGIN 1.0.0.0.8.7.6.5.4.3.2.1.1.0.0.2.ip6.arpa.
@ 86400 IN SOA dns1.aischang.com ming.aischang.com (
1481720695
3600
7200
604800
604800)86400 IN NS dns1.aischang.com.
86400 IN NS dns2.aischang.com.
2.0.0.0.0.0.0.0.0.0.0.0.7.8.9.0 14400 IN PTR ipv6.aischang.cn.
验证测试结果:
#### dig -p10053 -x 2001:1234:5678:1:987::2 ; <<>> DiG 9.10.2-P4-v1.0.1 <<>> @192.168.10.12 -p10053 -x 2001:1234:5678:1:987::2 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46195 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;2.0.0.0.0.0.0.0.0.0.0.0.7.8.9.0.1.0.0.0.8.7.6.5.4.3.2.1.1.0.0.2.ip6.arpa. IN PTR ;; ANSWER SECTION: 2.0.0.0.0.0.0.0.0.0.0.0.7.8.9.0.1.0.0.0.8.7.6.5.4.3.2.1.1.0.0.2.ip6.arpa. 14400 IN PTR ipv6.aischang.cn. ;; AUTHORITY SECTION: 1.0.0.0.8.7.6.5.4.3.2.1.1.0.0.2.ip6.arpa. 86400 IN NS dns1.aischang.com. 1.0.0.0.8.7.6.5.4.3.2.1.1.0.0.2.ip6.arpa. 86400 IN NS dns2.aischang.com. ;; Query time: 0 msec ;; SERVER: 192.168.10.12#10053(192.168.10.12) ;; WHEN: Wed Jun 27 10:06:09 CST 2018 ;; MSG SIZE rcvd: 186
6950





