![]() |
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 192.168.1.254" and then DNS begins to work, but for some reason I lose this configuration upon reboot. How do I get around this? |
What have you got in your /etc/network/interfaces file?
Any DNS info in there? |
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 09:33 AM. |