Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 1997 08:29:40 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brian Somers <brian@awfulhak.org>
Cc:        Josef Karthauser <joe@pavilion.net>, Terry Lambert <tlambert@primenet.com>, doconnor@Ist.flinders.edu.au, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Divert sockets..
Message-ID:  <19970909082940.32010@lemis.com>
In-Reply-To: <199709082127.WAA05170@awfulhak.demon.co.uk>; from Brian Somers on Mon, Sep 08, 1997 at 10:27:33PM %2B0100
References:  <19970908081500.32320@pavilion.net> <199709082127.WAA05170@awfulhak.demon.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970909082940.32010>