User Tools

Site Tools


ubuntu:networking:dns:troubleshooting:dns_resolver_not_working

This is an old revision of the document!


Ubuntu - Networking - DNS - Troubleshooting - DNS Resolver Not Working

Restart the Resolver Service

sudo systemctl restart resolvconf.service

Check Status

systemd-resolve --status

ls -al /etc/resolv.conf

returns:

lrwxrwxrwx 1 root root 32 Jan 10 18:50 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf

ALERT: If for any reason it does not link to /run/systemd/resolve/resolv.conf then run :

sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Only if above does not work, try:

Edit /etc/systemd/resolved.conf and add entry:

/etc/systemd/resolved.conf
[Resolve] 
DNS=192.168.2.1

ubuntu/networking/dns/troubleshooting/dns_resolver_not_working.1610314133.txt.gz · Last modified: 2021/01/10 21:28 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki