|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | ||
|
|
![]() |
| Tags |
| ssh made easy |
| Thread Tools | Search this Thread |
| 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 |
|
|