From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-157417-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C4FF013877A for <garchives@archives.gentoo.org>; Sun, 27 Jul 2014 10:33:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 01F56E0D17; Sun, 27 Jul 2014 10:33:50 +0000 (UTC) Received: from mail-wg0-f66.google.com (mail-wg0-f66.google.com [74.125.82.66]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A324FE0CC7 for <gentoo-user@lists.gentoo.org>; Sun, 27 Jul 2014 10:33:48 +0000 (UTC) Received: by mail-wg0-f66.google.com with SMTP id a1so2117056wgh.9 for <gentoo-user@lists.gentoo.org>; Sun, 27 Jul 2014 03:33:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nS07UEWS/qfk2osME0yeuc3/PLyvs4k4/bZcVyLzEpY=; b=ztumldrnmpF+YV134aoP8GBsYfHJnKZHvEuPbl08iU3cxGXn/GLGU1947TTwJFPGJ7 d46GYbp2UAlyNkqMeCXxm2r2TK7GwKbBAA68ugs3tJ4X5C26hDh24FoEnNWKLon4aG13 1GNgTFyuXAi+TRNCyGKY4ECDSOgoiOqSeM6EyR75J2ZDHBjL9oR3c6QQhpjbhsrDHJ3u veOj6kOTXzuwPTUknKgjUJvlNtF1hyjEK8CASLqaJb9ZBhxwk4LcQAZZK2HmNDytHApI KO+X/z+uEWatoVaef357K5CWVLkSBI3Lqe4JikpEQlI/AaBFa0rANI4fnme1IK6q13ti MsFg== Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.180.82.166 with SMTP id j6mr19459558wiy.71.1406457227244; Sun, 27 Jul 2014 03:33:47 -0700 (PDT) Received: by 10.180.75.235 with HTTP; Sun, 27 Jul 2014 03:33:47 -0700 (PDT) In-Reply-To: <20140727102923.7229724e@hactar.digimed.co.uk> References: <CACE6sHkRsDRNWC+FhXOAyDinLzWqC+YtPvFe0s6J0p8CgXqh_w@mail.gmail.com> <20140727102923.7229724e@hactar.digimed.co.uk> Date: Sun, 27 Jul 2014 13:33:47 +0300 Message-ID: <CACE6sHkT9P_pZvx7W6tGNwXpNyhqeCRyU67kLDyeSOUEY4dk-A@mail.gmail.com> Subject: Re: [gentoo-user] resolv.conf is different after every reboot From: Grand Duet <grand.duet@gmail.com> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 3b5d3806-d7cd-4b03-ae74-a39835f2018b X-Archives-Hash: 6ce9890ba933ea9284f282892a24731a 2014-07-27 12:29 GMT+03:00 Neil Bothwick <neil@digimed.co.uk>: > 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 It sounds logical. But how can I fix it? Can carrier_timeout_eth0= setting in /etc/conf.d/net file help? If so, how much seconds should I use? > what do your logs say? Could you, please, be more precise where to look for "logs". > It might be worth putting logger commands in preup(), > postup() and failup() in conf.d/net. Currently, I have no such functions in my /etc/conf.d/net file. Shall I copy them there from /usr/share/doc/netifrc-0.2.2/net.example Could you, please, be more specific on these "logger commands" too. >> 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. I do not have such file. Of course, if you do not mean /etc/resolv.conf But I have posted its content above.