From owner-freebsd-current Sun May 27 9: 9:33 2001 Delivered-To: freebsd-current@freebsd.org Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by hub.freebsd.org (Postfix) with ESMTP id 8AECE37B422 for ; Sun, 27 May 2001 09:09:29 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id D922117D25; Sun, 27 May 2001 18:05:06 +0200 (CEST) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.11.1/8.11.1) id f4RFxVD01274; Sun, 27 May 2001 17:59:31 +0200 (CEST) (envelope-from schweikh) Date: Sun, 27 May 2001 17:59:31 +0200 From: Jens Schweikhardt To: tlambert@primenet.com Cc: freebsd-current@freebsd.org Subject: Strange DNS behavior; I'm stumped Message-ID: <20010527175931.A729@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry, thanks a lot for taking the time to attack my DNS problem. I think, however, that there's something fishy with either my DNS setup or FreeBSD's new nsswitch configuration. # Make your test program do a gethostbyname(), like it does. # # Then take the resulting IP address, and call gethostbyaddr(), # to get the _canonical_ name and IP address of the host you # obtained by name, so that it will give you the A record name # of the host, instead of some CNAMe which may be transient. # # Now watch your modem dial out, because you have not set up # correct in-addr.arpa delegations for all of your local IP # addresses in your DNS server. # # Now look up. See the lightbulb. Hmm. Pardon my blindness, what I don't understand is that 1) My 4.3-RC#0 system does not show that behavior; it's configured the old way with /etc/host.conf. Starting ctwm there does not lead to the resolver doing a remote ns query. 2) The DNS query causing dial out requests an A record for hal9000.schweikhardt.net. and not a reverse lookup for whatever.in-addr.arpa: 19:19:36.504837 IP 74: 213.7.20.247.1025 > 129.143.1.1.53: 34068+ A? +hal9000.schweikhardt.net. (42) In fact there is no reverse lookup among the first dozen or so packets. 3) The ctwm sources only have one call to gethostbyname(), none for gethostbyaddr, so it's not as anal as one would think. The lines are XmuGetHostname(client, MAXHOSTNAME); hostname = gethostbyname(client); I'm not sure if XmuGetHostname could be the culprit. [Setting up a caching-only server] Before I do that I want to track down what has changed. I still believe that when my DNS works properly with 4.3 it should as well with 5.0 without jumping through this hoop. Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message