Name resolution in a network with IPv6
Created: 2025-01-30 Thu 09:40
$TTL 3600
example.org. IN SOA dns1.example.com. hostmaster.example.org. (
20210816 ; serial
1d ; refresh
2h ; retry
40d ; expire
2h ) ; neg TTL
example.org. IN NS dns1.example.com.
example.org. IN NS dns2.example.com.
example.org. IN MX 10 mail.example.org.
www.example.org. IN A 192.0.2.44
www.example.org. IN AAAA 2001:db8:100::66
mail.example.org. IN AAAA 2001:db8:100:0:AF:999:A800:1
mail.example.org. IN A 192.0.2.42
HTTPS record is a relatively new record. It's type number is 65 (aka TYPE65)
A and AAAA)HTTPS delivers connection information for an HTTPS service
HTTPS Record for a service offering HTTP/2 and HTTP/3 (preferred)example.com 3600 IN HTTPS 1 . alpn=”h3,h2”
HTTPS Record for a service with both IPv4 and IPv6 Addresses
example.com 3600 IN HTTPS 1 . alpn=”h3,h2” (
ipv4hint=”192.0.2.1”
ipv6hint=”2001:db8::1”
)
HTTPS Records is a signal to the web-browser to only
allow TLS secured/encrypted connections for this domain
name. This prevents downgrade attacks (DNSSEC recommended!).HTTPS Record it is possible to create Domain-Alias
definitions for whole zones (not possible with the CNAME
Record)dig, host) support the
HTTPS record since version 9.16.21 (September 2021)ip6.arpa.
$TTL 3600
$ORIGIN 0.0.0.0.0.0.1.0.8.b.d.0.1.0.0.2.ip6.arpa.
@ IN SOA dns1.example.org. hostmaster.example.org. (
20210116 ; serial
1d ; refresh
2h ; retry
40d ; expire
2h ) ; neg TTL
IN NS dns1.example.org.
IN NS dns2.example.org.
6.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0 IN PTR www.example.com.
1.0.0.0.0.0.8.a.9.9.9.0.f.a.0.0 IN PTR mail.example.com.
fd55:10:20:30::/64 and the GUA Prefix
2001:db8:20:30::/64 contain the same machines
HTTPS records for web-servicesm68112.datacenter.la.example.comwww.example.com
www.example.comwww.ip6.example.com
Literal IPv6 addresses in URLs must be enclosed in brackets. To
reach a web-server on the IPv6 address 2001:db8::2:3:4 use the URL
https://[2001:db8::2:3:4]:443/index.html
https://[fe80::226:b0ff:fed6:a4e0%25en0]:8088/index.html
: in the address must be replaced by dashes - …ipv6-literal.net must be appendedipv6-literal.net to a resolver, instead it will connect directly
to the derived IPv6 address.2001:db8:0:0:0:0:fea:1 is converted into
the pseudo name 2001-db8-0-0-0-0-fea-1.ipv6-literal.net.AAAA DNS recordMX record we have a choice
MX record, mail-host resolves into both A and AAAA
record(s) (IPv4 and IPv6)MX records for IPv4 and for IPv6
dig, delv, host (BIND 9)drill (ldns)unbound-host (unbound)nslookup
# dig aaaa www.isc.org ; <<>> DiG 9.9.5 <<>> aaaa www.isc.org ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61098 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 7 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.isc.org. IN AAAA ;; ANSWER SECTION: www.isc.org. 60 IN AAAA 2001:4f8:0:2::69 ;; AUTHORITY SECTION: isc.org. 7200 IN NS ns.isc.afilias-nst.info. isc.org. 7200 IN NS ord.sns-pb.isc.org. isc.org. 7200 IN NS sfba.sns-pb.isc.org. isc.org. 7200 IN NS ams.sns-pb.isc.org. ;; ADDITIONAL SECTION: ams.sns-pb.isc.org. 7200 IN A 199.6.1.30 ams.sns-pb.isc.org. 7200 IN AAAA 2001:500:60::30 ord.sns-pb.isc.org. 7200 IN A 199.6.0.30 ord.sns-pb.isc.org. 7200 IN AAAA 2001:500:71::30 sfba.sns-pb.isc.org. 7200 IN A 149.20.64.3 sfba.sns-pb.isc.org. 7200 IN AAAA 2001:4f8:0:2::19 ;; Query time: 622 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Mon Oct 27 14:20:12 CET 2014 ;; MSG SIZE rcvd: 299
# dig -x 2001:4f8:0:2::19 ; <<>> DiG 9.9.5 <<>> -x 2001:4f8:0:2::19 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37284 ;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;9.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.0.0.0.0.0.8.f.4.0.1.0.0.2.ip6.arpa. IN PTR ;; ANSWER SECTION: 9.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.0.0.0.0.0.8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN PTR sfba.sns-pb.isc.org. ;; AUTHORITY SECTION: 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS sec2.authdns.ripe.net. 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS ord.sns-pb.isc.org. 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS sfba.sns-pb.isc.org. 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS ams.sns-pb.isc.org. ;; Query time: 932 msec ;; SERVER: 172.22.1.22#53(172.22.1.22) ;; WHEN: Mon Oct 27 14:22:32 CET 2014 ;; MSG SIZE rcvd: 219
# dig -6 @sec2.authdns.ripe.net. 8.f.4.0.1.0.0.2.ip6.arpa. soa ; <<>> DiG 9.9.5 <<>> -6 @sec2.authdns.ripe.net. 8.f.4.0.1.0.0.2.ip6.arpa. soa ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44834 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;8.f.4.0.1.0.0.2.ip6.arpa. IN SOA ;; ANSWER SECTION: 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN SOA ns-int.isc.org. hostmaster.isc.org. 2014102100 28800 1800 2592000 3600 ;; AUTHORITY SECTION: 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS ams.sns-pb.isc.org. 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS sfba.sns-pb.isc.org. 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS ord.sns-pb.isc.org. 8.f.4.0.1.0.0.2.ip6.arpa. 7200 IN NS sec2.authdns.ripe.net. ;; Query time: 63 msec ;; SERVER: 2001:67c:e0::4#53(2001:67c:e0::4) ;; WHEN: Mon Oct 27 14:25:05 CET 2014 ;; MSG SIZE rcvd: 211
somehost.example.com.
A record for somehost.example.comANY record for somehost.example.comAAAA record for somehost.example.comAAAA and A records for somehost.example.comHTTPS record for somehost.example.com