Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
Search Forums:



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-08-2012
Registered User
 

Join Date: Jan 2011
Location: India
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
ssh with easy dns resolution

In my work env we have a lots of hosts. most all the hosts are in similar hostnames for eg cluster11.data.corp.sb1.uni.com, med123.data.corp.sk1.uni.com, also we have some server is colo network which have the host name like cluster11.data.colo.sb1.uni.com

Please help me to make the resolution easy I want to ssh the sever like this

ssh cluster11
ssh custer11.colo
ssh med123

---------- Post updated 02-08-12 at 12:08 AM ---------- Previous update was 02-07-12 at 10:23 PM ----------

I know i can make it by adding the .ssh/config file

Host cluster11
Hostname cluster11.data.corp.sb1.uni.com

but i have 20000 server not possible to add all the server in need a solution someone please help
Sponsored Links
    #2  
Old 02-08-2012
Registered User
 

Join Date: Jan 2012
Location: Pennsylvania
Posts: 24
Thanks: 0
Thanked 5 Times in 5 Posts
Look at the search string in your /etc/resolv.conf file. If you add domains like:

search data.corp.sb1.uni.com data.corp.sk1.uni.com data.colo.sb1.uni.com

it should look in one subdomain after another to find the host.

Consult the man pages - I don't think you can have more than 7 domains on the search line...

With all of those subdomains and duplicate hostnames, it's not an easy problem to solve...
Sponsored Links
    #3  
Old 02-08-2012
mark54g mark54g is offline Forum Advisor  
Registered User
 

Join Date: May 2008
Location: Northeastern United States
Posts: 871
Thanks: 1
Thanked 52 Times in 50 Posts
alternately, you can create CNAME entries in DNS. Yes, there are lots, but it is a one time thing. Also, you can change where the CNAME points in case you ever change the host name or IP address of the other servers, which gives increased flexibility.
Sponsored Links
Reply

Tags
ssh made easy

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help on installing an EASY to use and easy to install command line text editor EugeneG UNIX for Dummies Questions & Answers 4 07-16-2007 11:53 AM
DNS name resolution e250user Solaris 1 07-25-2006 11:13 AM
change CRT resolution ggenevrier UNIX Desktop for Dummies Questions & Answers 1 10-07-2002 10:10 AM
TCP/IP name resolution progressdll UNIX for Advanced & Expert Users 2 05-07-2002 11:33 AM
Resolution..?? Linux_fan UNIX Desktop for Dummies Questions & Answers 3 03-06-2002 10:33 AM



All times are GMT -4. The time now is 12:26 AM.