Fixing DNS Issues in Ubuntu 18.04 LTS

Ahmad Bilal
1 min readMay 20, 2018

--

Short post today, on fixing DNS issues in the latest Ubuntu 18.04 LTS. I upgraded my ThinkPad from Ubuntu 16.04 LTS, and started hitting DNS issues right away. The common symptoms were:

  1. Websites taking forever to resolve URL, and eventually timing out or returning random DNS errors.
  2. Updates getting stuck, waiting for name resolution.

Here is the solution that worked for me (like a charm!):

Step 1: Add Google’s (or your favorite) public DNS to /etc/systemd/resolved.conf:

DNS=8.8.8.8 2001:4860:4860::8888
FallbackDNS=8.8.4.4 2001:4860:4860::8844

Step 2: Restart networking (or reboot the machine)

This should fix the issue. Hope it helps!

--

--