Handling resolv.conf on Ubuntu Server 14.04 LTS

NoOp glgxg at sbcglobal.net
Tue Jun 17 01:21:29 UTC 2014


On 06/13/2014 10:03 PM, Niki Kovacs wrote:
...
> Now I wanted to do something similar on my Ubuntu server, so I figured 
> this information would go in /etc/network/interfaces, like this:
> 
> # eth0
> auto eth0
> iface eth0 inet static
>    address 195.154.104.191
>    netmask 255.255.255.0
>    gateway 195.154.104.1
>    dns-nameservers 127.0.0.1
>    dns-search online.net
> 
> And now what ? Invoking '/etc/init.d/networking restart' has no effect 
> on the content of /etc/resolv.conf, which still keeps the old values.
> 
> Do I really have to restart my whole server just to change my DNS 
> resolver ? There must surely be another way.

No.
<http://askubuntu.com/questions/224966/how-do-i-get-resolvconf-to-regenerate-resolv-conf-after-i-change-etc-network-in/225100#225100>
(that reply is from the author of resolvconf).







More information about the ubuntu-users mailing list