From owner-freebsd-hackers Fri Nov 17 13:48:32 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA01253 for hackers-outgoing; Fri, 17 Nov 1995 13:48:32 -0800 Received: from ginger.cmf.nrl.navy.mil (root@ginger.cmf.nrl.navy.mil [134.207.10.161]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA01244 for ; Fri, 17 Nov 1995 13:48:27 -0800 Received: from cmsun.cmf.nrl.navy.mil (kenh@cmsun.cmf.nrl.navy.mil [134.207.10.4]) by ginger.cmf.nrl.navy.mil (8.6.12/8.6.11) with ESMTP id QAA05935; Fri, 17 Nov 1995 16:47:30 -0500 Message-Id: <199511172147.QAA05935@ginger.cmf.nrl.navy.mil> To: root@spiffy.cybernet.com cc: hackers@freebsd.org Subject: Re: gethostbyXXX() blocking too long In-reply-to: Your message of "Fri, 17 Nov 1995 15:25:25 EST." X-Face: "Evs"_GpJ]],xS)b$T2#V&{KfP_i2`TlPrY$Iv9+TQ!6+`~+l)#7I)0xr1>4hfd{#0B4 WIn3jU;bql;{2Uq%zw5bF4?%F&&j8@KaT?#vBGk}u07<+6/`.F-3_GA@6Bq5gN9\+s;_d gD\SW #]iN_U0 KUmOR.P<|um5yPkEpSD@*e` Date: Fri, 17 Nov 1995 16:48:02 -0500 From: Ken Hornstein Sender: owner-hackers@freebsd.org Precedence: bulk >For quite some time now, our site has been plagued by long delays >during connecting to machines on the Internet. The connection is >established quickly, followed by LONG delays in getting any data, >login prompt, etc. I think that I've stumbled upon the answer. >[...] Actually, this isn't the problem. Even if you don't have PTR records in DNS, a gethostbyname() should still return quickly. (Try to look up a nonexistant record in DNS. It will return quickly. Well, it will return quickly if it can contact the nameserver that is authoritative for the domain). The _real_ problem is that your in-addr domain is totally hosed up. The NIC says the following machines are your servers for your in-addr domain: Domain System inverse mapping provided by: HEIFETZ.MSEN.COM 148.59.1.1 GARNET.MSEN.COM 148.59.1.11 NS1.OAR.NET 192.88.193.144 However, if you check these machines, they don't contain zone information for your in-addr domain. What you need to do is either get these sites to insert zone information, or point the NIC at the correct nameservers that do. You don't actually need PTR records in the zone; you just need a reachable nameserver that knows about your zone so it can say, "Nope, sorry". As a side note, it's worth pointing out that some ftp servers do require a PTR record (ftp.uu.net does, for example), so it might be worth putting in a bunch of dummy PTR records for all the hosts in your subnet. --Ken