| Linode Forum https://forum.linode.com/ |
|
| SSH with multiple hostnames https://forum.linode.com/viewtopic.php?f=19&t=5176 |
Page 1 of 2 |
| Author: | ngtech [ Wed Feb 10, 2010 2:13 am ] |
| Post subject: | SSH with multiple hostnames |
Hi I've got sshd working on my ubuntu server, but it does not work for all of my domains. It works for the IP address, as well as other.com, and www.main.com, but not main.com - they're all running off the same IP. For main.com it tells me my password is incorrect. If you ping main.com it is pinging the same IP as all the other domains are on and is seen in my /etc/hosts. In my /etc/hosts they are all defined and point to the same hostname that is found in /etc/hostname. I set it all up yesterday. Is there something I need to do to refresh the caches on my client or on the server? How should I be setting the server up for multiple hosts over ssh? Thanks Tim |
|
| Author: | ngtech [ Wed Feb 10, 2010 5:07 am ] |
| Post subject: | Ping showing "incorrect" routing |
Ok, the problem is sorted. It turns out that even though ping was showing the linode IP my DNS records weren't all pointing to the linode IP, very strange. |
|
| Author: | Guspaz [ Wed Feb 10, 2010 5:09 pm ] |
| Post subject: | |
Getting sshd working on Ubuntu is about as complex as executing "sudo apt-get install openssh-server", and everything just works. I thought that it was already installed by default on linodes, though. |
|
| Author: | sednet [ Thu Feb 11, 2010 5:20 am ] |
| Post subject: | Re: Ping showing "incorrect" routing |
ngtech wrote: Ok, the problem is sorted. It turns out that even though ping was showing the linode IP my DNS records weren't all pointing to the linode IP, very strange.
Check your forward and reverse DNS match. Lookup your hostname and you should get your IP. Lookup your IP and you should get your hostname. |
|
| Author: | funkytastic [ Thu Feb 11, 2010 7:14 pm ] |
| Post subject: | |
A semi-related tip, since I see this a lot: You don't need to use ping to resolve a hostname or IP address. Use a dns tool like host or dig. Ping performs a DNS lookup, but then proceeds to send packets at the target. This is entirely unrelated to resolving the target's hostname. Code: $ host newark3.linode.com |
|
| Author: | kmweber [ Thu Feb 11, 2010 9:25 pm ] |
| Post subject: | Re: SSH with multiple hostnames |
ngtech wrote: and www.main.com, but not main.com - they're all running off the same IP.
This is a massive misuse of the domain name system. If there are subdomains beneath a certain higher-level domain, then the higher-level domain should not have an address associated with it. |
|
| Author: | vonskippy [ Thu Feb 11, 2010 9:33 pm ] |
| Post subject: | |
I'm confused why you would need such a setup. If all domain and subdomains resolve to the same IP, what difference does it make? It's not like the ssh daemon cares how you got there. |
|
| Author: | Stever [ Thu Feb 11, 2010 9:36 pm ] |
| Post subject: | Re: SSH with multiple hostnames |
kmweber wrote: ngtech wrote: and www.main.com, but not main.com - they're all running off the same IP. This is a massive misuse of the domain name system. If there are subdomains beneath a certain higher-level domain, then the higher-level domain should not have an address associated with it. According to who? Code: $ host -t A icann.org |
|
| Author: | sednet [ Fri Feb 12, 2010 5:44 am ] |
| Post subject: | Re: SSH with multiple hostnames |
kmweber wrote: ngtech wrote: and www.main.com, but not main.com - they're all running off the same IP. This is a massive misuse of the domain name system. If there are subdomains beneath a certain higher-level domain, then the higher-level domain should not have an address associated with it. It's perfectly valid to have one IP for a domain and another for a subdomain. |
|
| Author: | rsk [ Fri Feb 12, 2010 7:05 am ] |
| Post subject: | |
Also, http://no-www.org |
|
| Author: | kmweber [ Sat Feb 13, 2010 11:42 am ] |
| Post subject: | Re: SSH with multiple hostnames |
sednet wrote: kmweber wrote: ngtech wrote: and www.main.com, but not main.com - they're all running off the same IP. This is a massive misuse of the domain name system. If there are subdomains beneath a certain higher-level domain, then the higher-level domain should not have an address associated with it. It's perfectly valid to have one IP for a domain and another for a subdomain. It's "valid" in the sense that "it'll probably work," but not in the sense that "it fits in with the conceptual, hierarchical view of the domain name system." |
|
| Author: | glg [ Sat Feb 13, 2010 11:49 am ] |
| Post subject: | Re: SSH with multiple hostnames |
kmweber wrote: It's "valid" in the sense that "it'll probably work," but not in the sense that "it fits in with the conceptual, hierarchical view of the domain name system."
Seriously? Just stop. You're making yourself look like a fool. Using the same IP for both a domain and a subdomain is not a "massive misuse" of DNS, nor will it "probably work", it does work, just fine. In fact, it works just fine to have hundreds of domains and hundreds more subdomains pointing to the same IP. |
|
| Author: | kmweber [ Sat Feb 13, 2010 11:58 am ] |
| Post subject: | Re: SSH with multiple hostnames |
glg wrote: kmweber wrote: It's "valid" in the sense that "it'll probably work," but not in the sense that "it fits in with the conceptual, hierarchical view of the domain name system." Seriously? Just stop. You're making yourself look like a fool. Using the same IP for both a domain and a subdomain is not a "massive misuse" of DNS, nor will it "probably work", it does work, just fine. In fact, it works just fine to have hundreds of domains and hundreds more subdomains pointing to the same IP. Please respond to what I actually said, and not what you might like to pretend I said. I never denied that what you describe would "work" in a technical sense. What I am saying is that having a subdomain and its parent domain resolve to an address at all, regardless of whether or not they're the same, is not valid regardless of whether or not it works, because it's inconsistent with the conceptual framework of the domain name system, period. |
|
| Author: | Xan [ Sat Feb 13, 2010 12:35 pm ] |
| Post subject: | Re: SSH with multiple hostnames |
kmweber wrote: Please respond to what I actually said, and not what you might like to pretend I said. I never denied that what you describe would "work" in a technical sense. What I am saying is that having a subdomain and its parent domain resolve to an address at all, regardless of whether or not they're the same, is not valid regardless of whether or not it works, because it's inconsistent with the conceptual framework of the domain name system, period.
I'm not sure exactly what the problem is that you have with that. I am sure that you're the first and only person I've ever seen who has this issue. Perhaps the problem is you and not the way people use DNS? |
|
| Author: | sweh [ Sat Feb 13, 2010 12:46 pm ] |
| Post subject: | Re: SSH with multiple hostnames |
Xan wrote: I'm not sure exactly what the problem is that you have with that. I am sure that you're the first and only person I've ever seen who has this issue. Perhaps the problem is you and not the way people use DNS?
I wouldn't be surprised if he was also against cross-domain CNAME records as well! |
|
| Page 1 of 2 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|