From owner-freebsd-hackers Mon Sep 8 16:02:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA12538 for hackers-outgoing; Mon, 8 Sep 1997 16:02:42 -0700 (PDT) Received: from nico.telstra.net (nico.telstra.net [139.130.204.16]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id QAA12528 for ; Mon, 8 Sep 1997 16:02:32 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by nico.telstra.net (8.6.10/8.6.10) with ESMTP id IAA03359; Tue, 9 Sep 1997 08:59:42 +1000 Received: (grog@localhost) by freebie.lemis.com (8.8.7/8.6.12) id IAA15242; Tue, 9 Sep 1997 08:29:40 +0930 (CST) Message-ID: <19970909082940.32010@lemis.com> Date: Tue, 9 Sep 1997 08:29:40 +0930 From: Greg Lehey To: Brian Somers Cc: Josef Karthauser , Terry Lambert , doconnor@Ist.flinders.edu.au, freebsd-hackers@FreeBSD.ORG Subject: Re: Divert sockets.. References: <19970908081500.32320@pavilion.net> <199709082127.WAA05170@awfulhak.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199709082127.WAA05170@awfulhak.demon.co.uk>; from Brian Somers on Mon, Sep 08, 1997 at 10:27:33PM +0100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Sep 08, 1997 at 10:27:33PM +0100, Brian Somers wrote: >> On Mon, Sep 08, 1997 at 09:10:46AM +0930, Greg Lehey wrote: >>> >>>> And there's the annoying localhost DNS lookup, even though host.conf >>>> has "hosts" first, and the name of the machine I'm rlogin'ing into >>>> is in /etc/hosts (it's myself). It triggers the PPP dial anyway, >>>> and I think that should only happen for non-local hosts. >>> >>> Well, why aren't you running named? It's faster than looking up >>> /etc/hosts. And if you don't tell the world it's there, it's not >>> going to get any external traffic. >>> >> >>> ( Running named on the end of a dial-up-demand line is bad! :( >> >> 'Tis fine until you start using the named for lookups and then it >> starts opening the line itself at random moments, i.e. when it's >> checking the validity of things still in its cache, etc. That's why >> I use /etc/hosts on my home machine, and resolve using an external >> name server on my work network. > > Naaa. Just use ppp & use a dfilter Is that a typo, or something I don't know about? > to block the DNS. If you play primary for everything local > (including any static *real* IP address you may have), it works > wonders. The bigger your LAN gets the happier you become. And how do you perform DNS lookups when the link is up? What you need is to limit the kind of packet which can cause autodial. Is that a dfilter? (If this was a typo, and you introduce the feature, how about calling it dfilter? :-) Greg