Handling resolv.conf on Ubuntu Server 14.04 LTS

Tom H tomh0665 at gmail.com
Wed Jun 25 10:33:45 UTC 2014


On Mon, Jun 16, 2014 at 7:35 AM, Niki Kovacs <info at microlinux.fr> wrote:
> Le 16/06/2014 13:30, Tom H a écrit :
>>
>> If neither dhclient nor resolvconf is running, what's changing
>> resolv.conf?
>>
>> And what ends up in it?
>
> resolv.conf kept the 'nameserver' line, but erased the 'search' line. Plus,
> the header saying "DO NOT EDIT THIS" kept returning.
>
> It's not a big deal, since at least one method works, e. g. editing
> interfaces and using resolvconf. Plus, this seems to be the orthodox way of
> configuring things, so I'll simply stick to that:
>
> https://help.ubuntu.com/14.04/serverguide/network-configuration.html

You mustn't have "rm /etc/resolv.conf ; cat 'nameserver 127.0.0.1' >
/etc/resolv.conf" because I use that on my bind servers and it isn't
added to or replaced.




More information about the ubuntu-users mailing list