Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49578 - djbdns ipv6 patch breaks dnstrace
Summary: djbdns ipv6 patch breaks dnstrace
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Jared H. Hudson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-01 01:23 UTC by Georgi Georgiev
Modified: 2004-05-23 07:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
djbdns-1.05-r9.ebuild.patch (djbdns-1.05-r9.ebuild.patch,1.41 KB, patch)
2004-05-01 01:24 UTC, Georgi Georgiev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2004-05-01 01:23:18 UTC
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.
Comment 1 Georgi Georgiev 2004-05-01 01:24:40 UTC
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.
Comment 2 Jared H. Hudson (RETIRED) gentoo-dev 2004-05-02 07:14:22 UTC
I tried it and did not get an error. Could you paste what the error was please?
Comment 3 Georgi Georgiev 2004-05-02 07:40:46 UTC
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....
Comment 4 Kalin KOZHUHAROV 2004-05-11 14:18:41 UTC
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.
Comment 5 Jared H. Hudson (RETIRED) gentoo-dev 2004-05-23 07:59:55 UTC
Added net-dns/djbdns-1.05-r12