Handling resolv.conf on Ubuntu Server 14.04 LTS
Patrick Asselman
iceblink at seti.nl
Mon Jun 16 10:58:22 UTC 2014
On 2014-06-16 10:15, Niki Kovacs wrote:
> Le 15/06/2014 17:41, Tom H a écrit :
>> If you'd like to disable resolvconf:
>>
>> 1) Remove "dns-nameserver[s]" from "/etc/network/interfaces"
>>
>> 2) Change "/etc/resolv.conf" into a file and populate it with
>> "nameserver 127.0.0.1"
>>
>> 3) Run "echo manual > /etc/init/resolv.override"
>
> I tried to do as you suggested. resolv.conf still gets overwritten
> upon reboot. And as a side effect, SSH login also "hangs" for what
> seems to be an eternity.
>
> So the lesser evil seems to be to put all the stuff in
> /etc/network/interfaces and restart the whole server when I want to
> make changes to resolv.conf.
>
> Cheers,
>
> Niki
>
> --
> Microlinux - Solutions informatiques 100% Linux et logiciels libres
> 7, place de l'église - 30730 Montpezat
> Web : http://www.microlinux.fr
> Mail : info at microlinux.fr
> Tél. : 04 66 63 10 32
Niki,
You may want to look into something called "network manager". That is
probably what is overwriting your resolv.conf
It made me swear too the first time it happened to me!
For a server setup, you can probably disable network manager. But
please read up on it before acting.
Best regards,
Patrick Asselman
More information about the ubuntu-users
mailing list