From owner-freebsd-stable@FreeBSD.ORG Mon Jun 5 20:36:22 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1BCD16B98A for ; Mon, 5 Jun 2006 20:36:22 +0000 (UTC) (envelope-from oberman@es.net) Received: from postal1.es.net (postal1.es.net [198.128.3.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 908E543D49 for ; Mon, 5 Jun 2006 20:36:22 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal1.es.net (Postal Node 1) with ESMTP (SSL) id IBA74465; Mon, 05 Jun 2006 13:36:15 -0700 Received: from ptavv.es.net (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id D321545043; Mon, 5 Jun 2006 13:36:15 -0700 (PDT) To: Damian Gerow In-reply-to: Your message of "Mon, 05 Jun 2006 15:51:48 EDT." <20060605195148.GJ99893@afflictions.org> Date: Mon, 05 Jun 2006 13:36:15 -0700 From: "Kevin Oberman" Message-Id: <20060605203615.D321545043@ptavv.es.net> Cc: freebsd-stable@freebsd.org, Lyndon Nerenberg Subject: Re: [OT] resolv.conf and dhclient X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 20:36:29 -0000 > Date: Mon, 5 Jun 2006 15:51:48 -0400 > From: Damian Gerow > Sender: owner-freebsd-stable@freebsd.org > > Thus spake Lyndon Nerenberg (lyndon@orthanc.ca) [05/06/06 15:49]: > : >I have two interfaces, one wired and one wireless. Both addresses are > : >negotiated via DHCP. However, I do /not/ want to use the DNS servers > : >provided via the wireless connection. > : > : > : interface "ath0" { > : supersede domain-name "orthanc.ca"; > : supersede domain-name-servers 127.0.0.1; > : } > : > : interface "bge0" { > : supersede domain-name "orthanc.ca"; > : supersede domain-name-servers 127.0.0.1; > : } > : > : And then just run a local instance of named. > > And what happens when I'm connected at home, and need to view portions of > DNS that are only accessible to the wired network? > > And what happens when I'm connected at work, and need to view portions of > DNS that are only accessible to the wired network? > > How will my local named instance know where to look? What happens when it > can't query externally at work? > > There are very legitimate needs for being able to swap DNS servers on the > wired connection, while ignoring those provided via the wireless. OK> We have now moved from dhclient issues to more general issues of multiple connection requirements. I use Tobias Roth's profile.sh which is available from https://secure.socket.ch/projects/profile/. It is less than perfect, but works very well for me. It allows totally different user environments depending on your network connection. It works by union mounting a different copy of /etc depending on what is probed on the network. I have profiles for home (wireless), work (1 location wired and 1 wired + wireless), and general random connections. Since the entire rc.conf as well as all other files in /etc may be connection specific, you can do almost anything you want to vary the config. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634