dns resolution fails in UI with only IPv6-recursive nameservers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mtr (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mtr
While using Jaunty/mtr-tiny and mtr version 0.75-2 I noticed a problem.
If the only recursive nameservers (the nameserver setting in /etc/resolv.conf) that are available are IPv6, the dns resolution in the ncurses ui fails.
In the --report mode it works.
I installed the mtr package and the same happend.
My guess is, when it's using --report it will use the system library which works with IPv4 and IPv6 nameserver settings.
In the case of the ncurses or grafical ui, mtr(-tiny) tries to do it itself with a non-blocking method and only seems to understand IPv4 nameservers.
I looked at some sourcecode, at first glance it seems to add only IPv4 address to the list of recursive nameservers in dns_open.
That could be the place were it goes wrong. I tried to change what seemed wrong at first glance, but that didn't help.
I subscribed to the mtr-mailinglist at the upstream-source (bitwizard I think it was) but their was no subscribe-
Hope this helps.
Patch is available:
https:/ /bugs.launchpad .net/mtr/ +bug/752583/ comments/ 5