Handling resolv.conf on Ubuntu Server 14.04 LTS
tomh0665 at gmail.com
Sat Jun 14 09:20:18 UTC 2014
On Sat, Jun 14, 2014 at 3:43 AM, Niki Kovacs <info at microlinux.fr> wrote:
> Le 14/06/2014 08:45, Tom H a écrit :
>> 2) It's best to use 'service <service> restart' but in the case of
>> '/etc/init/networking.conf' it's best to use 'ifdown eth0 ; ifup eth0'
>> (IIRC 'service networking restart' and '[initctl] restart networking'
>> error out).
> The problem with that is that if I invoke it in an SSH session on a root
> server, I'm kicked out.
> In a nutshell, how do I go about this on a root server ?
resolvconf -d $RESULT
echo "127.0.0.1" | resolvconf -a $RESULT
More information about the ubuntu-users