From owner-freebsd-questions Fri Jan 30 01:51:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA28611 for questions-outgoing; Fri, 30 Jan 1998 01:51:56 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id BAA28605 for ; Fri, 30 Jan 1998 01:51:54 -0800 (PST) (envelope-from atf3r@cs.virginia.edu) Received: from ares.cs.virginia.edu by mail.virginia.edu id aa19943; 30 Jan 98 4:51 EST Received: from mamba.cs.Virginia.EDU (mamba-fo.cs.Virginia.EDU [128.143.136.18]) by ares.cs.Virginia.EDU (8.8.5/8.8.5) with ESMTP id EAA01684; Fri, 30 Jan 1998 04:50:35 -0500 (EST) Received: from localhost (atf3r@localhost) by mamba.cs.Virginia.EDU (8.7.5/8.7.3) with SMTP id EAA21486; Fri, 30 Jan 1998 04:50:34 -0500 (EST) X-Authentication-Warning: mamba.cs.Virginia.EDU: atf3r owned process doing -bs Date: Fri, 30 Jan 1998 04:50:34 -0500 (EST) From: "Adrian T. Filipi-Martin" Reply-To: Adrian Filipi-Martin To: Don Croyle cc: FreeBSD Questions List Subject: Re: keeping DNS lookups local In-Reply-To: <86zpke38pb.fsf@emerson.gelemna.ft-wayne.in.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" On 29 Jan 1998, Don Croyle wrote: > I'm working on a second FreeBSD box to my home network (currently this > machine and a Win95 game box) and I've run into a problem. Things > like ftp, rlogin and ssh are insisting that the ppp link to my ISP be > up in order to get started. Once the local connection is working they > don't need the link to the outside world any more. Filtering DNS > lookups to keep them from causing ppp to dial out just causes the > problem programs to hang. > > I've got hosts ahead of bind in /etc/hosts.conf on both machines, the > appropriate entries in /etc/hosts and /etc/resolv.conf on this machine > (the gateway, and the only one running named) has nameserver 127.0.0.1 > listed ahead of my ISPs nameservers. > > Any suggestions? I ran into a similar problem. In my case I am only running a caching nameserver on my end of the ppp link. To get things up fine, I deleted my namerserver entries from rc.conf and made sure I had a good list of the root servers. However, I did also see the unwanted PPP traffic. You might consider adding a static route from and to your box that does not use the loopback interface. i.e. one that uses the PPP interface. I had to do this because I noticed that if I pinged my ppp IP the ICMP packet went down the PPP link and then back. The static route short circuits this loop. My machine is called lorax. Here is what I added to rc.conf: static_routes="lorax" # Set to static route list (or leave empty). route_lorax="128.143.244.37 127.0.0.1" Honestly, it seems that pppd ought to set this route by default. Anyone else agree? Adrian -- adrian@virginia.edu ---->>>>| If I were stranded on a desert island, and System Administrator --->>>| I could only have one OS for my computer, Neurosurgical Visualzation Lab -->>| it would be FreeBSD. Think about it..... http://www.nvl.virginia.edu/ ->| http://www.freebsd.org/