LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-03-2007, 10:19 AM   #1
billy3
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Rep: Reputation: 0
Slow SSH, how do I set up a proper DNS config?


Hi,

We have several linux boxes (SuSE 8.1, 9.3 and 10.1) and get delays when connecting to them by SSH, whether from Windows, OS X, or from one server to another. I added the IP address of one server (A) to another server's (B) hosts file, and then didn't get any delay in connecting from A to B.

However, I've read that this is more of a hack and not a proper solution. Also, this solution isn't practical either since we have many PCs and Macs which need to connect to the servers and can't add every IP to the hosts files.

I would greatly appreciate some guidance on what to do and how.

Thanks!
 
Old 05-03-2007, 10:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the probelm is ssh wants the hostname of the box which wants to be the client. you can either do what it's after and install a real dns server like bind, or there is an option in /etc/sshd_config, UseDNS, which when set to "no" doesn't bother trying to do it in the first place.
 
Old 05-03-2007, 03:52 PM   #3
billy3
LQ Newbie
 
Registered: Sep 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
there is an option in /etc/sshd_config, UseDNS, which when set to "no" doesn't bother trying to do it in the first place.

I checked sshd_config. The UseDNS line is commented out. Do I have to explicitly set it to "no"? Will I have to restart the sshd after changing this setting?
 
Old 05-03-2007, 03:57 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yea, it's a yes by default. you could presumably just hup the daemon, but restarting it would definitely make it pick up the changes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper way to set user as root access? SlowCoder Linux - Security 4 02-19-2007 08:03 PM
A proper way to config Xorg to use TFT ? muttley.meen Debian 0 08-20-2006 09:24 AM
proper kernel config - using an oldconfig Godsmacker777 Linux - General 7 06-05-2005 12:11 AM
RH 9, Netz und DNS Config, Fehler "set visible hostname" j.kopitzke Linux - Newbie 0 06-18-2003 11:31 PM
Proper DNS setup tarballedtux Linux - Networking 2 03-21-2002 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration