From owner-freebsd-hackers Sun Aug 24 21:28:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA16161 for hackers-outgoing; Sun, 24 Aug 1997 21:28:57 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA16122 for ; Sun, 24 Aug 1997 21:28:34 -0700 (PDT) Received: from word.smith.net.au (lot.atrad.adelaide.edu.au [203.20.121.21]) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) with ESMTP id NAA18322 for ; Mon, 25 Aug 1997 13:58:30 +0930 (CST) Received: from word.smith.net.au ([127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id JAA00507; Mon, 25 Aug 1997 09:17:41 +0930 (CST) Message-Id: <199708242347.JAA00507@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Brian Somers cc: Mike Smith , freebsd-hackers@FreeBSD.ORG Subject: Re: Broken resolver/named In-reply-to: Your message of "Sun, 24 Aug 1997 12:54:02 +0100." <199708241154.MAA00755@awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Aug 1997 09:17:29 +0930 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > >From resolver(3): > > RES_DEFNAMES If set, res_search() will append the default domain name to > single-component names (those that do not contain a dot). > This option is enabled by default. > > RES_DNSRCH If this option is set, res_search() will search for host > names in the current domain and in parent domains; see > hostname(7). This is used by the standard host lookup rou- > tine gethostbyname(3). This option is enabled by default. I must admit to some surprise here; I had thought that this behaviour was deprecated. > This is not the problem. My problem is that a WindowsNT box is > trying to resolve some dumb name, and sits there with its finger up > its a*s while the DNS times out. Good old Microslop^H^H^Hoft. Find the name it's looking for, and insert a dummy record in your local cache. > > If you never want to consult an outside nameserver, disable your > > forwarders; this is pretty dumb though. > > I do want to talk to real DNSs, but not for mis-typed names. This is the crux of the issue; how do you tell what is a mis-typed name without looking it up? mike