Date: Sat, 20 Nov 2004 13:02:59 +1030 From: Malcolm Kay <malcolm.kay@internode.on.net> To: Alfredo Finelli <alfredofnl@tiscali.it>, FreeBSD Questions <questions@freebsd.org> Subject: Re: ssh slowness Message-ID: <200411201302.59315.malcolm.kay@internode.on.net> In-Reply-To: <20041119233439.BEEE643D53@mx1.FreeBSD.org> References: <47f8d9310411191437526f70d1@mail.gmail.com> <20041119233439.BEEE643D53@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 20 Nov 2004 10:06 am, Alfredo Finelli wrote: > -- On Friday 19 November 2004 23:37, you wrote: > > Greetings All, > > > > I am running FreeBSD 4.10 stable. I connect to the internet via > > dialup so I have an entries in my /etc/hosts for all my local > > machines and I have an entry in my /etc/resolv.conf for my isp's > > dns server. when I am not connected to my isp and I try to ssh to > > a local machine from a local mahine it takes a "long" time to > > connect. I susspect the reason is because it is trying to hit the > > dns server first from my isp. From what I understand it should hit > > the hosts file first according to the following setup. Can anyone > > exlain how I can fix my problem? or explain why my current > > configuration is incorrect? > > > > /etc/host.conf > > > > # First try the /etc/hosts file > > hosts > > # Now try the nameserver next. > > bind > > In your "host.conf" file you should be using the keyword "order" to > specify how host lookups are to be performed by the resolver. It > should be followed by one or more lookup methods, separated by commas. > Valid methods are "bind", "hosts" and "nis". > > For example the line in /etc/host.conf could be: > > order hosts,bind > Hmm; Where does this come from? I'm not questioning the validity, but the OP's file is the installation default and I can see no reference to keyword "order" in the host.conf(5) man page. Malcolm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411201302.59315.malcolm.kay>