DNS 不适用于 Iv6

DNS 不适用于 Iv6

我正在尝试配置 ipv6 协议的绑定。我已将条目添加到区域和配置文件中,但当我尝试 nslookup 时仍然没有返回 ipv6 IP。有人可以指导我更正配置文件吗?

/etc/bind/zones/db.10 文件

    ;
    ; BIND reverse data file for local loopback interface
    ;
    $TTL    604800
    @       IN      SOA     necopdnsone.necthree.com. root.necthree.com. (
                                  3         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ; NS records
            IN  NS  necopdnsone.necthree.com.
            IN  NS  necopdnstwo.necthree.com.

    129   IN  PTR gateway.necthree.com.
    132   IN  PTR necopdnsone.necthree.com.
    133   IN  PTR necopdnstwo.necthree.com.
    131   IN  PTR necopdhcp.necthree.com.
    135   IN  PTR necopsegw.necthree.com.

/etc/bind/zones/db6.ip6.10

 ;
    ; BIND reverse data file for local loopback interface
    ;
    $TTL    604800
    @       IN      SOA     necopdnsone.necthree.com. root.necthree.com. (
                                  3         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ; NS records
            IN  NS  necopdnsone.necthree.com.
            IN  NS  necopdnstwo.necthree.com.

    1.0.0.0   IN  PTR gateway.necthree.com.
    8.0.0.0   IN  PTR necopdnsone.necthree.com.
    9.0.0.0   IN  PTR necopdnstwo.necthree.com.
    7.0.0.0   IN  PTR necopdhcp.necthree.com.
    6.0.0.0   IN  PTR necopsegw.necthree.com.

/etc/bind/zones/db.necthree.com

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     necopdnstwo.necthree.com. root.necthree.com. (
                              4         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
; NS records
        IN  NS  necopdnsone.necthree.com.
        IN  NS  necopdnstwo.necthree.com.
; A records
necopdnsone.necthree.com.      IN  A   10.222.190.132
necopdnsone.necthree.com.      IN  AAAA   2001:1:1:3::8
necopdnstwo.necthree.com.      IN  A   10.222.190.133
necopdnstwo.necthree.com.      IN  AAAA   2001:1:1:3::9
necopdhcp.necthree.com.        IN  A   10.222.190.131
necopdhcp.necthree.com.        IN  AAAA   2001:1:1:3::7
necopsegw.necthree.com.        IN  A   10.222.190.135
necopsegw.necthree.com.        IN  AAAA   2001:1:1:3::6
   ;@               IN  A   127.0.0.1
   ;@               IN  AAAA    ::1
gateway           IN  A    10.222.190.129
gateway           IN  AAAA   2001:1:1:3::1
;gaia              IN  A   10.222.190.60
www       IN  CNAME   necthree.com.

命名的.conf.本地

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "necthree.com" {
  type master;
  file "/etc/bind/zones/db.necthree.com";
};
zone "190.222.10.in-addr.arpa" {
  type master;
  file "/etc/bind/zones/db.10";
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.3.0.0.0.1.0.0.0.1.0.0.0.1.0.0.2.ip6.arpa" {
  type master;
  file "/etc/bind/zones/db.ip6.10";
};

nslookup 输出

root@ubuntu:/etc/bind# nslookup gateway.necthree.com
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   gateway.necthree.com
Address: 10.222.190.129

相关内容