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 1QWvfm-0003zK-FL for garchives@archives.gentoo.org; Wed, 15 Jun 2011 19:22:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 31B821C111; Wed, 15 Jun 2011 19:21:17 +0000 (UTC) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by pigeon.gentoo.org (Postfix) with ESMTP id 0625E1C111 for ; Wed, 15 Jun 2011 19:21:16 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.messagingengine.com (Postfix) with ESMTP id B7C8B207C5 for ; Wed, 15 Jun 2011 15:21:16 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute4.internal (MEProxy); Wed, 15 Jun 2011 15:21:16 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:date:from:mime-version:to:subject:references:in-reply-to:content-type; s=smtpout; bh=KufND32NAa/Gwewj6Q//nwVAQu4=; b=jAw+OI20QzYh71Whtc7TYSKkR8zbzfVlQzNiMMgPAKV/barn4UQa8hvyCzsqPG67EF2Hyc5uGQY/trAA+A6zfP9G0SxElXK6h/UCqKiPv2u47BzHhWDdbbL+yRqFmZPUozfBpHDRDRIdauxbigsB7Al8nWHRBah3nZ8a8o+FyKw= X-Sasl-enc: ncHpuEKEXIXsBFTDOXxUcx2WO04mkjx5zMOuDgL+Zxhv 1308165674 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id 175B24466F6 for ; Wed, 15 Jun 2011 15:21:13 -0400 (EDT) Message-ID: <4DF90621.6020109@binarywings.net> Date: Wed, 15 Jun 2011 21:21:05 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110507 Lightning/1.0b3pre Thunderbird/3.1.10 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] Override DHCP-provided DNS References: <4DF8BCAF.2090804@binarywings.net> <20110615142725.GA20949@ksp.sk> <4DF8FFB5.3020108@gmail.com> In-Reply-To: <4DF8FFB5.3020108@gmail.com> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDEC1928C4102DE07485A4FB7" X-Archives-Salt: X-Archives-Hash: 4d39196fdcb99492c5da0664ed606b12 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDEC1928C4102DE07485A4FB7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 15.06.2011 20:53, schrieb Dale: > Juan Diego Tasc=C3=B3n wrote: >> On Wed, Jun 15, 2011 at 9:27 AM, YoYo Siska wrote: >> =20 >>> On Wed, Jun 15, 2011 at 04:07:43PM +0200, Florian Philipp wrote: >>> =20 >>>> Hello list! >>>> >>>> for some wireless access points, I want to get an IP via DHCP but no= t >>>> use the provided DNS-server (I use an openvpn setup with its own DNS= >>>> server, domain name, etc.). >>>> >>>> In /usr/share/doc/openrc-0.8.2-r1/net.example it reads: >>>> # Setting name/domain server causes /etc/resolv.conf to be overwritt= en >>>> # Note that if DHCP is used, and you want this to take precedence th= en >>>> # please put -R in your dhcpcd options >>>> >>>> But dhcpcd does not seem to have a -R option. It does have a --stati= c >>>> option, though. While this is good enough for simply setting the DNS= >>>> server, it does not seem to allow specifying domain names or >>>> search-domains (at least it is not shown in the man-page). >>>> >>>> Please tell me what the proper way is and whether the mention of >>>> "-R" is >>>> a documentation bug. >>>> [...] >>> >>> So to stop dhcpcd from touching your DNS or MTU settings= >>> you would do:- >>> dhcpcd -C resolv.conf -C mtu eth0 >>> [...] >> >> I use the google dns servers so I created a /etc/resolv.conf file and >> set the i attribute on it: >> >> chattr +i /etc/resolv.conf >> >> that way it can't be removed or overwritten and you won't have that >> problem no matter what dhcp client you are using >> [...] > dhcp_eth0=3D"nodns" A, great. That's exactly what I was looking for. Wonder why I overlooked it. Probably because I searched the example file for DNS and dns. -.- Thanks for all the proposals! I guess I stick with the nodns option. The others aren't bad to know, either. Regards, Florian Philipp --------------enigDEC1928C4102DE07485A4FB7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk35BiUACgkQqs4uOUlOuU8DRQCfbWPmdjco5cjVi3WWvMJTC4mQ V8UAnRwucVjFwmlVx4O/qKPd+ynrKYYU =1Ow/ -----END PGP SIGNATURE----- --------------enigDEC1928C4102DE07485A4FB7--