From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2EE3713877A for ; Sun, 27 Jul 2014 20:28:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BC1CE0D0B; Sun, 27 Jul 2014 20:28:42 +0000 (UTC) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DDD5DE0CD2 for ; Sun, 27 Jul 2014 20:28:40 +0000 (UTC) Received: by mail-pa0-f53.google.com with SMTP id kq14so9173645pab.40 for ; Sun, 27 Jul 2014 13:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=4YTZI9a19Aqw5u/zYGadA/9yJJsyIKzVYhk3BLxkv+A=; b=P0UlJc+qM4TnYX90inqy/l1CDp3M+DA+KS5i5IDmCFZ7tuMkuDLy32tBNd/LOi/aUM pDaUQkopxvP2fOtiKi7bMpY63z3p3e5ULVquYdTcd9NK6HJK3fhalOk0+DZWBaeRVeP+ q7JOj5wyyfeLEahSb5cJXYjzmZTrnaFyOXfWGTP5cmEBxli/kgdbtpEcyYcZ7ZezjlTw ACBALHus2N2Z4dqY+T2kEH16k8WCGyJazfQkijlmsLjP9gFDxopG3XhXp+UiWz23Zvkg kgOjP0ia7nWillTF9YkJRYGuPpNHUfwXG812gnbKTt44WwBlk+W6vgViNfGgZ0PZpN6w pIcA== X-Received: by 10.68.131.33 with SMTP id oj1mr33979221pbb.71.1406492919806; Sun, 27 Jul 2014 13:28:39 -0700 (PDT) Received: from [192.168.247.60] (76-10-184-50.dsl.teksavvy.com. [76.10.184.50]) by mx.google.com with ESMTPSA id mj9sm20879591pdb.44.2014.07.27.13.28.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Jul 2014 13:28:39 -0700 (PDT) Message-ID: <53D560F3.1000900@gmail.com> Date: Sun, 27 Jul 2014 13:28:35 -0700 From: Daniel Frey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] resolv.conf is different after every reboot References: <20140727103904.GA5579@waltdnes.org> <53D511CB.1050101@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: fcf59d6c-fdea-4bb6-8dd2-6ef700d28998 X-Archives-Hash: 0eb8322c6e315cbfe5160bdcadf10b39 On 07/27/2014 08:08 AM, Grand Duet wrote: > > If eth0 starts after lo, then I have the right /etc/resolv.conf > file, however if lo starts after eth0, then the DNS IPs in > resolv.conf file are overwritten with dummy instruction > for lo interface. > > But, now, after your suggestion, I have looked into > my /etc/rc.conf file, and have found there the option > rc_parallel="NO" > which softens my previous arguments a bit, but not completely: > may be lo and eth0 are brought up not in parallel but in different > order, anyway. > The first thing I do on any new build is disable network hotplugging in /etc/rc.conf, as I've run into lots of problems, especially if you have multiple network devices and need to bring them up in a specific order. udev processes these items and apparently brings the interfaces up on its own unless you tell it otherwise (the !net.* in rc.conf). I've just gotten used to disabling that automagic because I want things to start in a certain order and udev can mess that up. During boot, you'll see something like 'processing events' and that's when udev is automagically doing it's start. From what I recall, this happens before the boot runlevel. So yes, it can mess things up as you've seen. I've never had the issue you have, even though I use a static ip, routes and dns servers in /etc/conf.d/net, but I would presume that this is just udev. FYI it doesn't always process things in the same order, as I've experienced with udev and my TV tuner cards... it can be random. Dan