From owner-freebsd-questions Sun Oct 20 22:35:52 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 5AAFB37B401 for ; Sun, 20 Oct 2002 22:35:50 -0700 (PDT) Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by mx1.FreeBSD.org (Postfix) with SMTP id CA19643E4A for ; Sun, 20 Oct 2002 22:35:49 -0700 (PDT) (envelope-from ihsan_junaidi@yahoo.com.sg) Received: from unknown (HELO trigger.lan) (ihsan?junaidi@219.93.197.247 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 21 Oct 2002 05:35:49 -0000 Content-Type: text/plain; charset="us-ascii" From: Ihsan Junaidi Ibrahim To: FreeBSD Questions Subject: Resolving hostname takes too long Date: Mon, 21 Oct 2002 13:34:40 +0800 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210211334.40639.ihsan_junaidi@yahoo.com.sg> 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 Hello all, I have quite a niggling problem with my box. It takes too long to resolve= =20 hostname; ranges between 15 to 30 secs. My box serves as a gateway and ip= fw=20 machine. Other machines on this network that connects to this machine don= 't=20 exhibit this particular problem, resolving hostname is pretty quick.=20 I've tried many things; amongst them putting an open firewall just to see= if=20 ipfw has anything to do with it; resolving still takes too much time. Thi= s=20 machine also serves as a private name server but I doubt that would get i= n=20 the way as I've disabled the private name server in resolv.conf; only=20 pointing to my ISP name servers. I have another problem which I think is related. Establishing SSH and FTP= =20 sessions (the only traffics I tested) from another machine to this machin= e=20 slow down to a crawl. Only after the establishments did everything ie:=20 transferring files is running smooth. Before this everything is fast,=20 connecting to my private FTP is blazingly fast, I did't even have the tim= e to=20 read the displayed log. Now when I'm doing it I can read and speak out lo= udly=20 every single word while they are displaying. Even connecting to my ISP FT= P=20 server is quicker. Connecting is just too slow for convenience sake. Ditt= o=20 SSH. I implement DHCP in addition to the name server which use UDP traffic *wh= ich*=20 I think, after reading the pertinent man pages, *may* have something to d= o=20 with UDP timeout or something like that. To change this default attribute= ,=20 I'd have to edit a kernel variable through sysctl. How do I know the righ= t=20 variable? I'm really at a loss over this. This box serve as my main desktop machine= , no=20 longer using Windows and hope to become a convert. __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message