Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can access some of my stacks via hostname and some via IP address like so:
1. ssh root@stack1.vm.org.net
2. ssh root@130.72.86.13
What config changes do I need to make so I can access all my stacks via Hostname? I get this error message when trying to access a stack using option 1 above. "Could not resolve hostname stack1.vm.org.net: Name or service not known"
Here's what I've done so far:
1. I looked at an old stack and compared network settings with a new stack
2. I checked firewall settings
The easiest way is to add each of the stacks to /etc/hosts on the system from which you're doing the ssh. More complicated would be to setup DNS or NIS to keep track of all the hosts in your domain then modify /etc/nsswitch.conf (to tell it to use DNS or NIS) and /etc/resolv.conf if you go the DNS route.
It depends on how many systems you have as to whether it makes sense to do DNS or NIS. In most commercial shops there are dozens or hundreds of systems so setting up DNS is what most folks do.
The easiest way is to add each of the stacks to /etc/hosts on the system from which you're doing the ssh. More complicated would be to setup DNS or NIS to keep track of all the hosts in your domain then modify /etc/nsswitch.conf (to tell it to use DNS or NIS) and /etc/resolv.conf if you go the DNS route.
It depends on how many systems you have as to whether it makes sense to do DNS or NIS. In most commercial shops there are dozens or hundreds of systems so setting up DNS is what most folks do.
Thanks. I figured it out. I went the hard way on this one and modified the DNS. This issue has been resolved. Sadly I can't post my solution because it's way too long and complicated and would require more time to explain than the amount of time I spent solving the problem. I'd be more than happy to help anyone though.. do a walk through, gchat and so forth.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.