sudo systemctl restart resolvconf.service
systemd-resolve --status
sudo journalctl -u systemd-resolved
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
Alternatively, try:
sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
try
sudo dpkg-reconfigure resolvconf
Only if above does not work, try:
Edit /etc/systemd/resolved.conf and add entry:
[Resolve] DNS=192.168.1.1