From owner-freebsd-questions Sun Oct 20 23:43:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D08A937B401 for ; Sun, 20 Oct 2002 23:43:38 -0700 (PDT) Received: from smtpzilla3.xs4all.nl (smtpzilla3.xs4all.nl [194.109.127.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id E436143E3B for ; Sun, 20 Oct 2002 23:43:37 -0700 (PDT) (envelope-from co9@xs4all.nl) Received: from xs4all.nl (a194-109-252-84.adsl.xs4all.nl [194.109.252.84]) by smtpzilla3.xs4all.nl (8.12.0/8.12.0) with ESMTP id g9L6hZUo041552; Mon, 21 Oct 2002 08:43:35 +0200 (CEST) Message-ID: <3DB3A24C.8030007@xs4all.nl> Date: Mon, 21 Oct 2002 08:44:28 +0200 From: Robin Schilham User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.1) Gecko/20021006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ihsan Junaidi Ibrahim Cc: FreeBSD Questions Subject: Re: Resolving hostname takes too long References: <200210211334.40639.ihsan_junaidi@yahoo.com.sg> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ihsan Junaidi Ibrahim wrote: >Hello all, > >I have quite a niggling problem with my box. It takes too long to resolve >hostname; ranges between 15 to 30 secs. My box serves as a gateway and ipfw >machine. Other machines on this network that connects to this machine don't >exhibit this particular problem, resolving hostname is pretty quick. > >I've tried many things; amongst them putting an open firewall just to see if >ipfw has anything to do with it; resolving still takes too much time. This >machine also serves as a private name server but I doubt that would get in >the way as I've disabled the private name server in resolv.conf; only >pointing to my ISP name servers. > > I had a similar issue a year ago. If I recall it correctly, it had to do with the absence of host names and ip addresses in /etc/hosts. Try adding these entries for the gateway and the other machines in the DMZ. The file /etc/hosts on the gateway machine should at least contain the public IP address and the host name of the gateway (the output of the command hostname). >I have another problem which I think is related. Establishing SSH and FTP >sessions (the only traffics I tested) from another machine to this machine >slow down to a crawl. Only after the establishments did everything ie: >transferring files is running smooth. Before this everything is fast, >connecting to my private FTP is blazingly fast, I did't even have the time to >read the displayed log. Now when I'm doing it I can read and speak out loudly >every single word while they are displaying. Even connecting to my ISP FTP >server is quicker. Connecting is just too slow for convenience sake. Ditto >SSH. > >I implement DHCP in addition to the name server which use UDP traffic *which* >I think, after reading the pertinent man pages, *may* have something to do >with UDP timeout or something like that. To change this default attribute, >I'd have to edit a kernel variable through sysctl. How do I know the right >variable? > >I'm really at a loss over this. This box serve as my main desktop machine, no >longer using Windows and hope to become a convert. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message