On Sun, 27 Jul 2014 12:21:23 +0300, Grand Duet wrote:

> In short: the contents of the file /etc/resolv.conf
> is unpredictably different from one reboot to another.
> It is either
>   # Generated by net-scripts for interface lo
>   domain mynetwork

That's what you get when lo comes up.

> or
>   # Generated by net-scripts for interface "eth0"
>   nameserver My.First.DNS-Server.IP
>   nameserver My.Second.DNS-Server.IP
>   nameserver 8.8.8.8

That's what replaces it when eth0 comes up. It looks like eth0 is not
being brought up fully, what do your logs say?

It might be worth putting logger commands in preup(), postup() and
failup() in conf.d/net.

> I tried to chmod this file to be unwrittable even for root
> but after a reboot it have been overwritten anyway.

You can't stop root overwriting a file, root laughs in the face of file
permissions.

BTW, I'm not sure if it's still relevant, but I don't think you ever
posted the contents of /etc/resolvconf.conf, if it exists.


-- 
Neil Bothwick

If at first you don't succeed, call in an airstrike.

Attachment: signature.asc
Description: PGP signature

Reply via email to