Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does Linux know its domain?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ens_leader
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2005
Posts: 105

PostPosted: Tue Sep 16, 2008 9:51 pm    Post subject: Does Linux know its domain? Reply with quote

I have a domain which points to my server. Within this domain are subdomains. My question is, if I point a subdomain to my server, and connect to it (say, using ssh), is there a way that it could know that it was contacted by the subdomain? I want to do this so I can have each subdomain be something i.e. (1.mydomain.com = ssh) (2.mydomain.com = telnet) All on the same machine. Ports would stay the same. Any way of having linux recognize how it was contacted?
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Tue Sep 16, 2008 10:01 pm    Post subject: Reply with quote

If you use one dedicated ip for each subdomain, no problem.
But all-on-one-ip is protocol dependend, e.g. apache supports vhosts.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Sep 16, 2008 10:06 pm    Post subject: Reply with quote

if i understand the requirements correctly then the answer is no.
As lagalopex already explained view services like e.g apache can act based on hostname used but other services (sshd, telnetd, snmpd, ntpd, ...) cannot.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum