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 1OmwVE-0008Rk-Hz for garchives@archives.gentoo.org; Sat, 21 Aug 2010 22:25:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4515DE09B9; Sat, 21 Aug 2010 22:24:23 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 29424E09B9 for ; Sat, 21 Aug 2010 22:24:23 +0000 (UTC) Received: by gxk1 with SMTP id 1so2575479gxk.40 for ; Sat, 21 Aug 2010 15:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=2iOADD1x3Jdqc7Qikyw2rfKMVA9SR3od5HSRgy6tJ90=; b=t13smxIPlh5Lf3RTf+CD9jEYodXsT16PjVnYDQzRaRpkvTT8FaqAad5/kf1vusklWr vHbwULEyfE6wiesih5+QdS4oMx76hOjpsD+MEsOJEpzq9GX+JclUgqp0ohlgnFhszo// pjZ+J0XATmLEM7inQoK4M1u0jDgHpGqNSEHu0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=bRpusG4Nr8V/9P9VJ4TWh1jLmAwxRfuaff6tUbWVXxg3NiQVtZ8Tn6QKvlnX2ay2Yp Fl3Hq5jMklIW2Zm7Xz5BK3TVMlWtbJVjV64a5lzLRYkNUiOt8Bsib9snKjDH673cm+nb tDmc/jhJpozn2sbX2HT2xtCzYaQZEYi6zS3EY= Received: by 10.100.6.2 with SMTP id 2mr3545016anf.39.1282429462695; Sat, 21 Aug 2010 15:24:22 -0700 (PDT) Received: from [192.168.1.2] (adsl-0-124-203.jan.bellsouth.net [65.0.124.203]) by mx.google.com with ESMTPS id a12sm7364398and.36.2010.08.21.15.24.20 (version=SSLv3 cipher=RC4-MD5); Sat, 21 Aug 2010 15:24:21 -0700 (PDT) Message-ID: <4C705213.4050905@gmail.com> Date: Sat, 21 Aug 2010 17:24:19 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100801 Gentoo/2.0.6 SeaMonkey/2.0.6 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] DHCPCD and nameserver References: <4C6F6F2B.80906@gmail.com> <20100821113047.4c98e6ba@marcec.huntemann.uni-oldenburg.de> In-Reply-To: <20100821113047.4c98e6ba@marcec.huntemann.uni-oldenburg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 0e638dfc-4872-44cd-ad88-ab3081d8c9a5 X-Archives-Hash: d2e3198a58c30bd357aaf118a8e97b3f Marc Joliet wrote: > Am Sat, 21 Aug 2010 09:15:26 +0059 > schrieb Jorge Almeida: > > [...] > =20 >> I don't know about dhcpcd, but I'm using dhclient, and it works like t= his: >> $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 >> =20 > With dhcpcd you can do something similar. When I was setting up dnsmasq= on my > system I found out you can create hooks for dhcpcd; for instance, > in /etc/dhcpcd.enter-hook I have (well, now "had"): > > # Prepend localhost to the list of DNS servers > new_domain_name_servers=3D"127.0.0.1 ${new_domain_name_servers}" > > The resulting resolv.conf: > > marcec marcec # cat /etc/resolv.conf > # Generated by dhcpcd from eth0 > # /etc/resolv.conf.head can replace this line > search huntemann.uni-oldenburg.de > nameserver 127.0.0.1 > nameserver 192.168.0.250 > # /etc/resolv.conf.tail can replace this line > > However, the comments in resolv.conf indicate you you can create one or= both of > /etc/resolv.conf.{head,tail}, which will be merged into /etc/resolv.con= f > automatically! The resulting resolv.conf: > > marcec marcec # cat /etc/resolv.conf > # Generated by dhcpcd from eth0 > # force localhost as first nameserver > nameserver 127.0.0.1 > search huntemann.uni-oldenburg.de > nameserver 192.168.0.250 > # /etc/resolv.conf.tail can replace this line > > So both methods are slighly different. I think I'll stick with the latt= er now, > as I think it's more correct. However, I'm not sure whether this works = with > other DHCP clients or just for dhcpcd. > > =20 >> HTH >> >> Jorge >> =20 > HTH > -- > Marc Joliet > -- > Lt. Frank Drebin: "It's true what they say: cops and women don't mix. L= ike > eating a spoonful of Dr=C4=81no; sure, it'll clean you out, but it'll l= eave you > hollow inside." > =20 I read about the head/tail files but wasn't sure what they did or how it=20 worked. I need new glasses so I can see better. I spend more time=20 trying to read than being able to understand what I read. -_- <<=3D=3D =20 That would be eyes closed. I guess I could have created a head file and just put my prefs on top. =20 Thing is, I just removed the overlays so now I don't even need this. =20 lol Then again, those are faster than my ISPs servers. Still better off= . Thanks for the info. I learned something. Dale :-) :-)