DNS resolution of irc.freenode.net or chat.freenode.net fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am running Ubuntu 16.10 (from a base install upgraded several times), with proposed-updates enabled. Recently, I started having problems where I am unable to resolve irc.freenode.net.
This is unrelated to the networks. I have been able to confirm that systemd-resolved is able to perform the name resolution. Yet, getaddrinfo() call returns -EAI_AGAIN error.
This can be reproduced using getent:
> $ getent ahosts irc.freenode.net
> $
While testing v4 or v6 directly returns something valid:
> $ getent ahostsv4 irc.freenode.net
> 38.229.70.22 STREAM chat.freenode.net
> 38.229.70.22 DGRAM
> 38.229.70.22 RAW
> 130.239.18.119 STREAM
> 130.239.18.119 DGRAM
> 130.239.18.119 RAW
[...]
> $
> $ getent ahostsv6 irc.freenode.net
> 2001:5a0:
> 2001:5a0:
> 2001:5a0:
> 2001:6b0:
> 2001:6b0:
> 2001:6b0:
[...]
> $
dpkg.log shows there has been some upgrade of systemd recently, though I cannot tell for sure if that directly relates to the problem, I do use suspend-to-ram a lot and reboot not that often.
> $ lsb_release -a
> LSB Version: core-9.
> Distributor ID: Ubuntu
> Description: Ubuntu 16.10
> Release: 16.10
> Codename: yakkety
A workaround is to remove "[NOTFOUND=return] resolve" from /etc/nsswitch.conf, though it may break other things (but nothing visible so far).