Fixing DNS Resolver on Kubuntu

systemd is nice in principle, but it does not always improve things. E.g. why does it need a DNS resolver?

Fix #1

This will get rid of the initial DNS name not resolvable error I see sometimes: Change /etc/nsswitch.conf and remove in the hosts line the “[NOTFOUND=return]”

Fix #2

This removes the local DNS proxy/cache: Edit /etc/systemd/resolved.conf and include your DNS server here.

[Resolve]
DNS=192.168.2.1

Also fix your resolv.conf symbolic link:

❯ ls -la /etc/resolv.conf
lrwxrwxrwx 1 root root 34 May  4 20:55 /etc/resolv.conf -> ../run/systemd/resolve/resolv.conf

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Create your website at WordPress.com
Get started
%d bloggers like this: