DNS addresses sbeing dropped when rebooting

Asked by Gary

I use Ubuntu 18.4 Desktop GUI to select Network under System/Administration/Network, select the DNS tab, unlock the tab and enter dns address 8.8.8.8.

Everything works fine until I reboot the machine. When the system is up I have to re-enter the dns address.

What am I doing wrong?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

run:

echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null

It will now set the DNS server to 8.8.8.8 each bootup

Reboot to test

Can you help with this problem?

Provide an answer of your own, or ask Gary for more information if necessary.

To post a message you must log in.