From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OmjGh-0000Jy-PL for garchives@archives.gentoo.org; Sat, 21 Aug 2010 08:17:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46FADE06FE; Sat, 21 Aug 2010 08:16:27 +0000 (UTC) Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com [209.85.216.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 2ABA0E0724 for ; Sat, 21 Aug 2010 08:16:27 +0000 (UTC) Received: by qwe5 with SMTP id 5so4197548qwe.40 for ; Sat, 21 Aug 2010 01:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=K6KBiCB9P4AVZS1E+7Hl2tV5lUd56fUK/4F4/fzl39M=; b=lmb8rzr6Xm280muuYiSaxDfU70ahMkvhoCUB8VOnOPi8MnejM9k+C6SlAnlRM1jTAu 0DGJoK/iztjbBuN7AAVf4cbmNpNwHC8LR9697tVY6fmpCF+585zAe269DgRoE/pcSV9k k+iVjCYhXg1Ds7C7NsNC7SCAwp57ktCRLa49c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xXagblF6AfRhFhv2MiE4dy4Vcm8dXIe0jhv41VqKiV1Ahp6Kw7YgeW9yxav59pLkBs yi2qud0CqWdPWm9T+5G97bWTVFLSgyBcsR44Z6kGX8YorNstzHoV/w+In6U6DkW9xdyB r1d2TT1s3yLUBVK/kVYKOIhDxp+eKvdBnD5oQ= 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 Received: by 10.229.2.35 with SMTP id 35mr456122qch.271.1282378586864; Sat, 21 Aug 2010 01:16:26 -0700 (PDT) Received: by 10.229.81.11 with HTTP; Sat, 21 Aug 2010 01:16:26 -0700 (PDT) In-Reply-To: <4C6F6F2B.80906@gmail.com> References: <4C6F6F2B.80906@gmail.com> Date: Sat, 21 Aug 2010 09:15:26 +0059 Message-ID: Subject: Re: [gentoo-user] DHCPCD and nameserver From: Jorge Almeida To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 4eb759cc-3bf1-42d7-b1c9-d9956c9b5d26 X-Archives-Hash: 215172b9e51c09108e59ec71ddbb1f98 > > I'm trying to get my nameserver setting to stick in resolv.conf when I > restart the network or reboot. =A0Layman will not work with my ISP's DNS > server for some crazy reason. =A0Anyway, I have this in /etc/conf.d/net f= ile: > Dale, if I understood correctly, you want to set the contents of /etc/resolv.conf and don't want dhcp to overwrite ir. Right? > modules=3D"dhcpcd" > config_eth2=3D"dhcp" > dns_servers_eth2=3D"nameserver 8.8.8.8 nameserver 8.8.4.4" > > As you can see I need it set to 8.8.8.8 but it doesn't seem to see my > setting. =A0After I restart my network, it updates resolv.conf to this: > I don't know about dhcpcd, but I'm using dhclient, and it works like this: $cat /etc/resolv.conf config_eth0=3D("dhcp") modules_eth0=3D("dhclient") dhcp_eth0=3D"nodns" I'm not sure the last line is necessary. Then: $ cat /etc/dhcp/dhclient.conf append option domain-name-servers 127.0.0.1 Substitute 127.0.0.1 by 8.8.8.8 HTH Jorge