using dnstrace for an ipv6-patched djbdns does not work at all. It always gives an error. As a workaround, I suggest compiling dnstrace from a non-ipv6 enabled source tree, until the problem is resolved.
Created attachment 30434 [details, diff] djbdns-1.05-r9.ebuild.patch This patch enables the compilation of dnstrace from a source that has not been patched for ipv6.
I tried it and did not get an error. Could you paste what the error was please?
OK. I will first reinstall djbdns: root@lion root # PORTDIR_OVERLAY= emerge --ask --verbose djbdns These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] net-dns/djbdns-1.05-r9 -fwdzone +ipv6 -roundrobin -static 0 kB Total size of downloads: 0 kB Do you want me to merge these packages? [Yes/No] Yes ... installed correctly. I then proceed to use dnstrace as I would ordinarily use it: chutz@lion chutz $ dnstrace a www.gentoo.org c.root-servers.net | tee dnstrace.log 0:.:.:start:NS:.:. 0:.:.:start:A:.:192.33.4.12 1:www.gentoo.org:.:192.33.4.12:tx 1:www.gentoo.org:.:192.33.4.12:ALERT:query failed; address not available And here is some more info (10.0.0.8 cache is my dns resolver): chutz@lion chutz $ strace -e trace=network dnstrace a www.gentoo.org c.root-servers.net socket(PF_INET6, SOCK_DGRAM, 0) = 3 bind(3, {sa_family=AF_INET6, sin6_port=htons(22994), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 connect(3, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "::ffff:10.0.0.8", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 send(3, "En\1\0\0\1\0\0\0\0\0\0\1c\froot-servers\3net\0"..., 36, 0) = 36 recv(3, "En\201\200\0\1\0\0\0\0\0\0\1c\froot-servers\3net\0"..., 513, 0) = 36 socket(PF_INET6, SOCK_DGRAM, 0) = 3 bind(3, {sa_family=AF_INET6, sin6_port=htons(4030), inet_pton(AF_INET6, "::", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 connect(3, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "::ffff:10.0.0.8", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0 send(3, "\227\264\1\0\0\1\0\0\0\0\0\0\1c\froot-servers\3net\0"..., 36, 0) = 36 recv(3, "\227\264\201\200\0\1\0\1\0\0\0\0\1c\froot-servers\3net"..., 513, 0) = 52 0:.:.:start:NS:.:. 0:.:.:start:A:.:192.33.4.12 1:www.gentoo.org:.:192.33.4.12:tx socket(PF_INET6, SOCK_DGRAM, 0) = 3 bind(3, {sa_family=AF_INET6, sin6_port=htons(39748), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(30240), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(43686), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(9455), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(25736), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(44615), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(50946), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(45503), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(18592), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(62563), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) bind(3, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "::100:ff:0:200:1c", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1 EADDRNOTAVAIL (Cannot assign requested address) 1:www.gentoo.org:.:192.33.4.12:ALERT:query failed; address not available Why did you NOT get the error I wonder....
There is and has been a problem with dnstrace for quite a lot now. Although dnstrace is not the most-often-used program of the package, it definately is worth. The suggested patch does fix the problem, so it should be included (meaning dnstrace should not be patched with IPv6). See bug #50795 for updated patch against net-dns/djbdns-1.05-r11 along with some other improvements.
Added net-dns/djbdns-1.05-r12