-   Ubuntu (
-   -   Ubuntu Server manually set DNS (

wh33t 10-09-2012 06:42 PM

Ubuntu Server manually set DNS
Hey LQ,

Quick question here. I have a ubuntu server up and running with a static IP address, no issues there. The problem I'm having is that whenever I reboot the machine it seems to lose it's DNS settings. I can set the DNS settings manually by doing a sudo nano /etc/resolv.conf and manually adding in "nameserver" and then DNS begins to work, but for some reason I lose this configuration upon reboot.

How do I get around this?

etech3 10-10-2012 11:44 AM

What have you got in your /etc/network/interfaces file?

Any DNS info in there?

wh33t 10-10-2012 02:41 PM

Hey thanks for chiming in. I've actually managed to get the DNS settings to stick. Turns out you don't set the dns server manually in /etc/resolv.conf anymore (at least not in Ubuntu Server). You set it in the /etc/network/interfaces script. So it's all working now :D

All times are GMT -5. The time now is 03:35 PM.