Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 1997 00:25:57 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Broken resolver/named 
Message-ID:  <199708252325.AAA14034@awfulhak.org>
In-Reply-To: Your message of "Mon, 25 Aug 1997 21:18:56 %2B0200." <19970825211856.DK43421@uriah.heep.sax.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
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)





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