From owner-freebsd-questions@FreeBSD.ORG Tue May 8 10:42:36 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DEC0516A403 for ; Tue, 8 May 2007 10:42:35 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 6E0CF13C45E for ; Tue, 8 May 2007 10:42:35 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id 71so70215ugh for ; Tue, 08 May 2007 03:42:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=oHu5HjhyiWNVuzNHILGWUris/37LzY78Jit3aBn1kcoChm1EtigcqZaZvbX4uHC5Fnk33Frcecbrvm+cuo+uufll2lp9BCCLp4MPy0ES/DQxvKGn9qF37DT4jq6adJF9csBrXDCHqAYVSjCfE5OMseJ5l2Os8DAo85B34foDiLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=MrL1ETYWUPP2Ab3zNkcN4+rFuTLPNdA9KxZnTH9HuDGmKwSxNyfIyb+aKgCYtpsESwY5DxE63EdLgd8uSTOVdOl4T0WrpjkGpWnwnu7mBAnad4VbRqBDPOJhSUh/h2igu+5GQ/fz8pkepZp2OK5cTH0iavY6F86hPTK1JdQaoag= Received: by 10.67.117.18 with SMTP id u18mr405415ugm.1178620954161; Tue, 08 May 2007 03:42:34 -0700 (PDT) Received: from ?IPv6:::ffff:127.0.0.1%693133673? ( [217.206.187.79]) by mx.google.com with ESMTP id m1sm583444uge.2007.05.08.03.42.32; Tue, 08 May 2007 03:42:33 -0700 (PDT) From: Tom Evans To: Matthew Seaman In-Reply-To: <463E1135.80603@infracaninophile.co.uk> References: <200705061540.l46FevTF017542@cheyenne.sixcompanies.com> <463E1135.80603@infracaninophile.co.uk> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-dnQt5bO39j92VaY7H42+" Date: Tue, 08 May 2007 11:42:31 +0100 Message-Id: <1178620951.1457.6.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port Cc: JD Bronson , freebsd-questions@freebsd.org Subject: Re: ppp.conf + resolv.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2007 10:42:36 -0000 --=-dnQt5bO39j92VaY7H42+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2007-05-06 at 18:32 +0100, Matthew Seaman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 >=20 > JD Bronson wrote: > > I am using 6.2 as a DSL (PPPoE) router and also run my own internal DNS > > on the same machine. I would like to APPEND my ISP's dished out DNS > > servers to my current resolv.conf but anytime I enable dns in my > > ppp.conf it nukes my entire resolv.conf....! > >=20 > > I am looking to end up with this: > >=20 > > % cat /etc/resolv.conf > > domain mydomain > > nameserver 192.168.1.1 > > nameserver ISP's DNS > > nameserver ISP's DNS > >=20 > >=20 > > How do I do this and still retain my own entries in resolv.conf? > > If I was using DHCPclient, I could edit dhclient.conf of course but > > PPPoE does not consult this file during negotiation that I am aware of. > >=20 > > Any comments will be appreciated... >=20 > As you say, PPP doesn't let you append extra servers to what it receives > automatically. Your best recourse then is to find out the IP numbers > of your ISPs DNS machines -- either by consulting the ISP's documentation > or web site, by asking their support team or by looking at the results > obtained by running PPP with 'enable dns'. >=20 > Then make sure your ppp.conf does not overwrite your /etc/resolv.conf on > connection, and just edit resolv.conf to insert the IP numbers you've > discovered. A static resolv.conf will serve you well enough. After all, > it's not like your ISP will be changing their DNS servers every few hours= . >=20 > Cheers, >=20 > Matthew >=20 > - --=20 > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > Kent, CT11 9PW > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.3 (FreeBSD) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >=20 > iD8DBQFGPhE08Mjk52CukIwRCHDoAJ93yd9gz56ky1YZHKTfHo6FZINmcQCeMsqI > 6tA7krSkXceKhswQO/As+eo=3D > =3DITCJ > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" Not actually tested this, ip-up might be a little early for this $ cat > /etc/ppp/ppp-linkup #!/bin/sh ( /bin/echo -e "domain foo\nnameserver 192.168.1.1\n";=20 /usr/bin/grep nameserver /etc/resolv.conf ) > /tmp/resolv.conf /bin/mv /tmp/resolv.conf /etc/resolv.conf ^D $ chmod +x /etc/ppp/ppp.linkup Or add "resolv readonly" to your ppp.conf, and maintain your resolv.conf yourself. --=-dnQt5bO39j92VaY7H42+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGQFQPlcRvFfyds/cRAgHoAKCsM3vEBmzm2078SOi0wxyteGHFRACgrFi+ uUTPFwKhqMujoVdc7eciu9A= =2RuY -----END PGP SIGNATURE----- --=-dnQt5bO39j92VaY7H42+--