From owner-freebsd-hackers Mon Aug 25 16:29:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA20043 for hackers-outgoing; Mon, 25 Aug 1997 16:29:18 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA19959 for ; Mon, 25 Aug 1997 16:28:16 -0700 (PDT) Received: from awfulhak.org (dev.lan.awfulhak.org [10.0.1.5]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id AAA14907; Tue, 26 Aug 1997 00:25:58 +0100 (BST) Received: from dev.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.6) with ESMTP id AAA14034; Tue, 26 Aug 1997 00:25:57 +0100 (BST) Message-Id: <199708252325.AAA14034@awfulhak.org> X-Mailer: exmh version 2.0zeta 7/24/97 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Broken resolver/named In-reply-to: Your message of "Mon, 25 Aug 1997 21:18:56 +0200." <19970825211856.DK43421@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 26 Aug 1997 00:25:57 +0100 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > I like Joerg's suggestion :-) It would solve my problems. Joerg, > > any advance on some documentation about TLDs not having A records (or > > even TLDs not needing A records) ? > > Of course, they are allowed to do so, but i think it's fairly > pointless. (Steinar pointed out to me that even .dk has an A RR, > blech.) Perhaps we might add a hack for people like you and me that > is disabled by default... How about the enclosed one-liner ? Any objections to putting it into 2.2 & -current ? DONT_QUERY_TLDS would not be "on" by default. > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) -- Brian , Don't _EVER_ lose your sense of humour.... Index: res_query.c =================================================================== RCS file: /home/ncvs/src/lib/libc/net/res_query.c,v retrieving revision 1.14 diff -c -r1.14 res_query.c *** res_query.c 1997/06/27 08:22:03 1.14 --- res_query.c 1997/08/25 23:22:39 *************** *** 283,288 **** --- 283,295 ---- * note that we do this regardless of how many dots were in the * name or whether it ends with a dot. */ + #ifdef DONT_QUERY_TLDS + /* + * Some people may not want to query for things such as ``x'' + * as the DNS will just pass the query onto a root server. + */ + if (dots) + #endif if (!tried_as_is) { ret = res_querydomain(name, NULL, class, type, answer, anslen); if (ret > 0)