How can I save my DNS servers?

Asked by Osher

Every time I start Ubuntu I need to reenter the DNS servers in order to use the internet(I do that on administration -> networking -> DNS), from some reason its always start on 10.0.0.138.
Can I somehow save the DNS servers I enter for good?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Danny Staple
Solved:
Last query:
Last reply:
Revision history for this message
Danny Staple (danny-orionrobots) said :
#1

Have you got your networking configured as DHCP or static IP? DHCP will try to obtain DNS information from the DHCP server, and if it is not being cast, may default to none.

Is 10.0.0.138 your gateway (router/modem)?

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#2

That IP sounds like you have a Speedtouch modem. Can you go to the web based control panel for your router/gateway and configure it to know what the DNS servers are? That way your client will ask the gateway when DNS requests are made, and the gateway will talk to the ISP DNS servers..

Revision history for this message
kabads (adamc) said :
#3

Two steps will solve this:

Remove the package resolvconf
with:
sudo aptitude remove resolvconf

Resolvconf is the package which will always check for dns at boot.

Then to fix /etc/resolv.conf so that no system process can change it use:

sudo chattr +i /etc/resolv.conf

HTH

Revision history for this message
Yogesh Kulkarni (swamiyogesh) said :
#4

I also faced same problem and the fact is the issue remained still as it was I am unable to get DNS permanently same on the Networking.
Please help me further.

Revision history for this message
Osher (oshernet) said :
#5

10q kabads it worked :)