Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Feb 10, 2010 2:13 am 
Offline
Newbie

Joined: Wed Feb 10, 2010 2:07 am
Posts: 2
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


Top
   
PostPosted: Wed Feb 10, 2010 5:07 am 
Offline
Newbie

Joined: Wed Feb 10, 2010 2:07 am
Posts: 2
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.


Top
   
 Post subject:
PostPosted: Wed Feb 10, 2010 5:09 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
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.


Top
   
PostPosted: Thu Feb 11, 2010 5:20 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
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.


Top
   
 Post subject:
PostPosted: Thu Feb 11, 2010 7:14 pm 
Offline
Senior Member
User avatar

Joined: Sun Aug 10, 2008 11:26 am
Posts: 104
Location: ~$
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
newark3.linode.com has address 207.192.68.8
$


Top
   
PostPosted: Thu Feb 11, 2010 9:25 pm 
Offline
Senior Newbie

Joined: Mon Feb 08, 2010 5:09 pm
Posts: 17
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.


Top
   
 Post subject:
PostPosted: Thu Feb 11, 2010 9:33 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
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.


Top
   
PostPosted: Thu Feb 11, 2010 9:36 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
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
icann.org has address 192.0.32.7
 $ host -t A www.icann.org
www.icann.org has address 192.0.32.7
 $ host -t A linode.com
linode.com has address 67.18.186.61
 $ host -t A www.linode.com
www.linode.com has address 67.18.186.61



Top
   
PostPosted: Fri Feb 12, 2010 5:44 am 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
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.


Top
   
 Post subject:
PostPosted: Fri Feb 12, 2010 7:05 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Also, http://no-www.org :P


Top
   
PostPosted: Sat Feb 13, 2010 11:42 am 
Offline
Senior Newbie

Joined: Mon Feb 08, 2010 5:09 pm
Posts: 17
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."


Top
   
PostPosted: Sat Feb 13, 2010 11:49 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
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.


Top
   
PostPosted: Sat Feb 13, 2010 11:58 am 
Offline
Senior Newbie

Joined: Mon Feb 08, 2010 5:09 pm
Posts: 17
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.


Top
   
PostPosted: Sat Feb 13, 2010 12:35 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
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?


Top
   
PostPosted: Sat Feb 13, 2010 12:46 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
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!

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group