Handling resolv.conf on Ubuntu Server 14.04 LTS

Niki Kovacs info at microlinux.fr
Mon Jun 16 08:15:36 UTC 2014


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




More information about the ubuntu-users mailing list