Re: how to make and use subdomains
- From: "Sharad Naik" <s.m.naik@xxxxxxxxxxxxxxxxx>
- Date: Tue, 13 Sep 2005 13:38:09 +0530
Hi Rob,
To explain it, I would again repeat - the job of the DNS server is to just
translate a domain name in to IP address, it has nothing to do with ports or
redirection with headers etc.
Now if you have only 1 server on which you are hosting FTP, WEB, GAME, MAIL
etc., then you actually won't need any subdomains, because every subdomain
will have to just point to the public IP address of your server.
If you had FTP running on one server having one public IP address, WEB
server running of a second server having different public IP address and so
on, then only
having sub-domains (or to simplify different "A" records) would make real
sense.
The programs, once they know the IP address, takes care of connecting to a
correspoding port.
For example IE will automatically connect to port 80- http (or 423 for
https, or 21 for ftp),
mail programs like outlook, outook express, will automatically connect to
port 110 for incoming mail and, 25 for outgoing mail.
(again having two different sub-domains pop.yourdomain.com and
smtp.yourdomain.com won't make sense unless you have pop3
server running on 1 server and smtp on the other.)
So the DNS server simply tells an IP address and it's the programs which
direct you to corresponding ports.
But still for the convinience of the users, you can leave the created
subdomain as they are. When one knows your
domain name - yourdomain.com, first reaction always is that for web site he
should use www.yourdomain.com and
for ftp, ftp.yourdomain.com . So if you don't have these sudomains, they
will get error.
For web folders - this is done in the Web Server - IIS.
You have to configure it in your IIS. In the default web site you can add
virtual directory giving any name you want (say - guild),
and enter a path of a folder - say XYZ So now
http://yourdomain.com/guild will direct the user the folder XYZ.
For games server etc, you can add virtual directory say - 'game', and after
adding it you can set it to URL redirection to yourdomain.com:port.,
so the users can connect to it using myourdoamin.com/game.
There are lot more tricks in IIS for complete header translation also, you
can check in IIS help or port question in that NS.
As for your last comment, in the web browser if you type
http://ftp.yourdomain.com, it will take you to your website,
if you simply type ftp.yourdomain.com the browser assumes you want ftp
connection will connect to port 21 of your server.
Sharad
"Robert Blackwell" <robatNOSPAMwowcentral.com> wrote in message
news:uh%230lyCuFHA.2076@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Sharad, I'm moving from shared ISP hosting to my own dedicated server.
>
> I am trying to setup some stuff but I'm also trying to understand this
> stuff better.
> as I mentioned when I registered my domain with serverbeach dns tool it
> autocreated various subdomains like mail, ftp, pop etc.
>
> I have an ftp server setup and when I connect I can connect by ip or
> mydomain.com or anysubdomain.mydomain.com... well not any, but any of the
> ones that are created.
>
> I thought subdomains routed traffic to specific locations or ports. so
> when i see a subdomain like pop or smtp or ftp I THOUGHT that that each
> one would be routed to whatever so
>
> ftp.mydomain.com would auto route to the ftp port 21
> or smtp.mydomain.com would be specifically for smtp port 25
>
> But, as I found out with my ftp AND mail server is that I can connect to
> both with just mydomain.com and if I decide to put any subdomain in front
> of it it connects just fine also.
>
> On my old webhost I created a subdomain called guild.mydomain.com and when
> you typed it in your browser it would direct you to a folder that I
> specified... which was just actually mydomain.com/guild but it could have
> been anyfolder I believe, even many folders within guild.
>
> So, I want to make subdomains that go to other folders of my website. And
> then I want to make a subdomain that would work with services... I have a
> gameserver installed and I can't connect using mydomain.com only myip:port
> I also have a teamspeak server setup, but I can't connect with
> mydomain.com only myip:port
>
>
> Now while typing this e-mail I tried typing ftp.mydomain.com into my web
> browser and instead of loading my website it di actually turn into ftp and
> ask me to enter ftp info to connect.
>
> I hope I wasn't too long winded here but I try to be as thorough as I can
> when askin for help online. :/
>
.
- References:
- how to make and use subdomains
- From: Robert Blackwell
- Re: how to make and use subdomains
- From: Sharad Naik
- Re: how to make and use subdomains
- From: Robert Blackwell
- how to make and use subdomains
- Prev by Date: Re: Strange DNS Behaviour
- Next by Date: Re: Strange DNS Behaviour
- Previous by thread: Re: how to make and use subdomains
- Next by thread: Help - Really need Help
- Index(es):
Relevant Pages
|