doesn't return DNS results

Bug #993490 reported by Ryan Schulze
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
znc
New
Undecided
Unassigned
c-ares (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The ZNC package relies on c-ares for DNS lookups. After updating to precise ZNC was no longer able to do DNS lookups.

The ZNC error message is "Csocket.cpp:267 DNS server returned answer with no data".

strace of what is happening:

recvfrom(5, "\323o\201\200\0\1\0\0\0\0\0\0\3irc\16OnlineGamesNet\3"..., 513, 0, {sa_family=AF_INET6, sin6_port=htons(53), inet_pton(AF_INET6, "2a01:4f8:151:6002::2", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 40
recvfrom(4294967295, 0x7fffe94ea740, 513, 0, 0x7fffe94ea950, 0x7fffe94ea73c) = -1 EBADF (Bad file descriptor)

After replacing /usr/lib/x86_64-linux-gnu/libcares.so.2.0.0 with the version from oneric DNS resolv correctly again via c-ares.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libc-ares2 1.7.5-1
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Wed May 2 14:07:41 2012
InstallationMedia: Ubuntu-Server 11.10 "Oneiric Ocelot" - Release amd64 (20111011)
SourcePackage: c-ares
UpgradeStatus: Upgraded to precise on 2012-05-02 (0 days ago)

Revision history for this message
Ryan Schulze (qfl4-ryan-nryi) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in c-ares (Ubuntu):
status: New → Confirmed
Revision history for this message
fish (discordianfish) wrote :

Can also confirm this bug. It happens for me on a ec2 micro instances with official canonical Ubuntu 12.04 LTS AMI. So it should be easy for anyone to reproduce.

Revision history for this message
Luke Sheldrick (luke-sheldrick) wrote :

This is affecting me too.

Have found http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658184 however the work around doesn't seem to help me.

Just updated to the latest 12.04, with the following ZNC versions:

luke@n0rty:~$ dpkg -l | grep znc
ii znc 0.206-1 advanced modular IRC bouncer
ii znc-dev 0.206-1 advanced modular IRC bouncer (development headers)
ii znc-extra 0.206-1 extra modules for znc
ii znc-perl 0.206-1 advanced modular IRC bouncer (Perl extension)
ii znc-python 0.206-1 advanced modular IRC bouncer (Python extension)
ii znc-tcl 0.206-1 advanced modular IRC bouncer (Tcl extension)

Revision history for this message
Luke Sheldrick (luke-sheldrick) wrote :

OK, it does seem to work... however have to set it per user in the znc conf.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.