Ubuntu – Extremely slow connection after 17.04 update


My connection has become extremely slow after I updated to 17.04. It was fine in 16.10.

Chrome gets stuck at "Resolving host…" for sometimes more than 30 seconds. I've tried other browsers and they are the same. Meanwhile my phone which is connected to the same network is fast as usual.

I have tried adding following lines to /etc/NetworkManager/NetworkManager.conf but it didn't change anything:


Best Answer

I had the exact same issue (just like @Mark Roberts).

Here is the fix:

Note: the current /etc/resolv.conf file is actually a symlink to ../run/resolvconf/resolv.conf which appears to be the core issue since it is not maintained by systemd-resolved.

Thus if you do an ls -la you'll see:

~# ls -la /etc/resolv.conf
lrwxrwxrwx 1 root 29 Apr 14 11:36 /etc/resolv.conf -> ../run/resolvconf/resolv.conf

so... to get around this do the following:

sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

After that I kicked systemd-resolved just to make sure:

sudo systemctl restart systemd-resolved

This appears to work great because:

systemd-resolved maintains the /run/systemd/resolve/resolv.conf file for compatibility with traditional Linux programs. This file may be symlinked from /etc/resolv.conf and is always kept up-to-date, containing information about all known DNS servers.

Which I quoted DIRECTLY from the bug report:(bug # 1624320) and I believe it is the culprit.

Related Question