From owner-freebsd-questions@FreeBSD.ORG Sun May 6 17:32:55 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 0D6A016A402 for ; Sun, 6 May 2007 17:32:55 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 63C9413C457 for ; Sun, 6 May 2007 17:32:54 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l46HWbvJ010233; Sun, 6 May 2007 18:32:38 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l46HWbvJ010233 Message-ID: <463E1135.80603@infracaninophile.co.uk> Date: Sun, 06 May 2007 18:32:37 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: JD Bronson References: <200705061540.l46FevTF017542@cheyenne.sixcompanies.com> In-Reply-To: <200705061540.l46FevTF017542@cheyenne.sixcompanies.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 06 May 2007 18:32:49 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.2/3212/Sun May 6 10:57:02 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, DK_POLICY_SIGNSOME,NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: 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: Sun, 06 May 2007 17:32:55 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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....! > > I am looking to end up with this: > > % cat /etc/resolv.conf > domain mydomain > nameserver 192.168.1.1 > nameserver ISP's DNS > nameserver ISP's DNS > > > 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. > > Any comments will be appreciated... 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'. 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. Cheers, Matthew - -- 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 iD8DBQFGPhE08Mjk52CukIwRCHDoAJ93yd9gz56ky1YZHKTfHo6FZINmcQCeMsqI 6tA7krSkXceKhswQO/As+eo= =ITCJ -----END PGP SIGNATURE-----