Dns On Ipv6: Rungroad Saejung
Dns On Ipv6: Rungroad Saejung
th
DNS on IPv6
Rungroad Saejung
Topics
3 Resolver
4 Troubleshooting
DNS and IPv6
DNS Extensions for IPv6 Support (RFC 3596)
ftp IN A 172.30.0.7
ftp.v6 IN AAAA 2001:3c8:9009:181::7
debian IN CNAME ftp.v6.coe.psu.ac.th.
DNS and IPv6
AAAA Lookup
th com
co ac
psu ku
resolver
DNS and IPv6
Reverse-Mapping Zones
$ORIGIN 1.0.9.0.0.9.8.c.3.0.1.0.0.2.ip6.arpa.
7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8 IN PTR
ftp.v6.coe.psu.ac.th.
ipv6calc --in ipv6addr --out revnibbles.arpa
2001:3c8:9009:181::7
DNS and IPv6
Built-In Empty Reverse-Mapping Zones
http://www.root-servers.org
http://www.internic.net/zones/named.root
Bind and IPv6
Installation
/etc/bind/named.conf.options
options {
# sure other options here, too
listen-on-v6 { any; };
};
options {
# sure other options here, too
query-source-v6 address 2001:db8:cafe:1::1;
};
Bind and IPv6
Zones
zone ipv6.sandbox" {
type master;
file "hosts.ipv6.sandbox";
allow-query {any;};
allow-transfer {any;};
};
zone 8.a.d.0.1.0.0.2.ip6.arpa" {
type master;
file "reverse-2001-0da8_32.IP6.ARPA";
};
Bind and IPv6
Access Control Lists (1)
acl internal-net {
127.0.0.1;
1.2.3.0/24;
::1/128;
2001:db8:cafe::/56;
::ffff:1.2.3.4/128;
};
acl ns-internal-net {
1.2.3.4;
2001:db8:cafe:1::1;
2001:db8:cafe:1::/64;
};
Bind and IPv6
Access Control Lists (2)
options {
# sure other options here, too
listen-on-v6 { any; };
allow-query { internal-net; };
allow-transfer { ns-internal-net; };
};
Resolver
Static Configuration
/etc/resolv.conf
nameserver ::1
nameserver 2001:3c8:9009:181::5
nameserver 2001:3c8:9009:181::9
Resolver
DHCPv6
Zone Transfers
% dig @fivedots.v6.coe.psu.ac.th coe.psu.ac.th axfr
LAB
v6.sandbox1 and
1.0.0.0.e.f.a.c.8.4.6.0.1.0.0.2.ip6.arpa
LAB
/etc/bind/named.conf
zone v6.sandbox1." in {
type master;
file "db.sandbox1";
};
zone " 1.0.0.0.E.F.A.C.8.4.6.0.1.0.0.2.IP6.ARPA " in {
type master;
file reverse-2001-0648-CAFE-1.IP6.ARPA;
};
LAB
Forward-zone file
test.org. IN SOA server.test.org. root.server.test.org. (
1 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL of 1 day
test.org. IN NS server.test.org.
localhost.test.org. IN A 127.0.0.1
IN AAAA ::1
server.test.org. IN A 10.10.10.202
IN AAAA 2001:648:E000:1000::2
LAB
Examples BIND files
Reverse-zone file
0.0.0.1.0.0.0.E.8.4.6.0.1.0.0.2.ip6.arpa. IN SOA server.test.org.
root.server.test.org. (
1 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL of 1 day
0.0.0.1.0.2.3.2.8.4.6.0.1.0.0.2.ip6.arpa. IN NS server.test.org.
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.0.E.8.4.6.0.1.0.0.2.ip6.arpa. IN PTR
server.test.org.