View previous topic :: View next topic |
Author |
Message |
ens_leader Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 27 Feb 2005 Posts: 105
|
Posted: Tue Sep 16, 2008 9:51 pm Post subject: Does Linux know its domain? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
lagalopex Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/547843818468ac9730a74e.gif)
Joined: 16 Oct 2004 Posts: 565
|
Posted: Tue Sep 16, 2008 10:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Tue Sep 16, 2008 10:06 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|