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 1Omjmw-0003xT-U9 for garchives@archives.gentoo.org; Sat, 21 Aug 2010 08:50:55 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CE6BE088C; Sat, 21 Aug 2010 08:50:21 +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 81069E088C for ; Sat, 21 Aug 2010 08:50:21 +0000 (UTC) Received: by qwe5 with SMTP id 5so4216126qwe.40 for ; Sat, 21 Aug 2010 01:50:21 -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=TbI67DMo4d5oyKeQGuPLXNJ0lqnvcK+IH1eOS8LYMB0=; b=vc9BDKtV0pKeXRmnWay2g0yR49Ms81twsz2LfemphAO0Wgcw9dpryMh+03gu16Amm7 agfDM/bGIjf9v22/HyCTnu76Ix3Wd7SMshq9pH+caRVsRRXywR0TwfMVZg3jXs3i69J+ mgwCx2gk6d4l/sIoL4OqSnD7O1cKyl1FsxSQA= 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=rUBQDIHNE452KVjVgjeaXeCou/HFDLh+PzXMzPRn5MHpQhxdej9ZeZ8DZ1YEBTiLcQ sgLOPrpSj3/z9gB2uYmAG6BgdOlRP4sssep/TGYwzQ6gYNENXlziq9o9jiE5R9qd4Uoq lBDFl3W5wi9aRu51y2cWxonzow+lvzBDtCFc8= 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 35mr472724qch.271.1282380621070; Sat, 21 Aug 2010 01:50:21 -0700 (PDT) Received: by 10.229.81.11 with HTTP; Sat, 21 Aug 2010 01:50:21 -0700 (PDT) In-Reply-To: <4C6F8DA2.1030805@gmail.com> References: <4C6F6F2B.80906@gmail.com> <4C6F8DA2.1030805@gmail.com> Date: Sat, 21 Aug 2010 09:49:21 +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: f1bf6d7e-a54a-47be-af9f-5e5095d5571b X-Archives-Hash: 989ac98811d091f39113f766de444e9f On Sat, Aug 21, 2010 at 9:25 AM, Dale wrote: >> I don't know about dhcpcd, but I'm using dhclient, and it works like thi= s: >> $cat /etc/resolv.conf Oops... It was "cat /etc/conf.d/net"... >> config_eth0=3D("dhcp") >> modules_eth0=3D("dhclient") >> dhcp_eth0=3D"nodns" >> > > I kept playing with this because I did it once before and knew it could b= e > done. =A0I did finally figure out how to get it to work. =A0It appears th= e > syntax has changed a little bit. =A0This is what I ended up with after so= me > trial and error, maybe a little tooth pulling too. =A0;-) =A0This is my n= et > file: > > modules=3D"dhcpcd" > config_eth2=3D"dhcp" > dhcp_eth2=3D"nodns" > dns_servers_eth2=3D"8.8.8.8 8.8.4.4" > > Now I get this in resolv.conf: > > root@smoker / # cat /etc/resolv.conf > # Generated by net-scripts for interface eth2 > nameserver 8.8.8.8 > nameserver 8.8.4.4 > > root@smoker / # > > So, it's working now. =A0It's not quite the same config as last time but = it > works. > OK, now I know how to do it also with dhcpcd. Cheers. Jorge