Ubuntu 18.04 DNS address is not updating in resolve.conf file

Update hosts line 
sudo vim /etc/nsswitch.conf

hosts:          files dns myhostname

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

Restart Network service
sudo service NetworkManager restart
Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment