BIND 9.1.1 AND IPC4-MAPPED IPv6 addresses

Sogor Laszlo sogor at mars.arts.u-szeged.hu
Fri Apr 27 07:29:55 UTC 2001


Hello,

I have to set up a test environment: an IPv4 network, an IPv6 one and a
NAT-PT with DNS-ALG between them. The root, hu and yyy.hu zones must be
inside the IPv4 network, I use a bind 8.2.2p7 for these zones. A single
zone (for example zzz.hu) is in the IPv6 network using BIND 9.1.1. The .hu
zone is configured that NS of zzz.hu points to an address from the IPv4
address pool of NAT-PT. 

The IPv4->IPv6 query works perfectly.

In the root.hint file of IPv6 DNS server there is an IPv4-mapped address
(::ffff:0:0/96):

.		3600000  IN  NS		ns.root
ns.root		3600000	     AAAA	::ffff:192.168.1.2

When I ask this server to resolve an "external" domain (not zzz.hu):

# dig @::1 -t any yyy.hu
; <<>> DiG 9.1.1 <<>> @::1 -t any yyy.hu
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39466
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;yyy.hu.                      IN      ANY

...
if the recursion is `yes' and if the recurdion is no:

;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54544
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;yyy.hu.                      IN      ANY

;; AUTHORITY SECTION:
.                       3600000 IN      NS      ns.root.

If I change the mapped address to a global IPv6 one, it works.

If I do

# dig @::ffff:192.168.1.2 -t any yyy.hu

I'll get the correct answer.

So BIND don't handle IPv4-mapped IPv6 addresses, but mapped addresses must
be used because of the NAT-PT. :(( 

I think there is no config option to manage this. Does anybody know how to
solve this problem? How have I modify the source code? Has anybody ANY
idea?

Thanks.

shogy



More information about the bind-users mailing list