Re: how to make and use subdomains

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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. :/
>


.



Relevant Pages

  • Re: Microsoft FTP Server problem on W2K?
    ... I have technical responsibility for this FTP implementation, ... Since PASV voids PORT, the client side ... connect to the server from" isn't implied by the text of the RFC. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Some questions
    ... > using my ftp software behind my router. ... > issued to server by the client. ... When PORT is used: ... > Can you give me a command line used in a browser to explain me what is the ...
    (comp.security.firewalls)
  • Re: Firewall and ftp service
    ... I'll say it again, FTP is eeeevul. ... > which redirects the traffic to my public ftp server. ... > should force the server to stay on port 21 for tha data connection, ... the client tells the server what port it will be ...
    (FreeBSD-Security)
  • Re: Firewall and ftp service
    ... FTP is eeeevul. ... >> which redirects the traffic to my public ftp server. ... > client connects to the server on port 21. ... the client tells the server what port it will be ...
    (FreeBSD-Security)
  • Re: ftp problem
    ... The remote end will have to have port 20 and 21 ... Check it with another ftp site to make sure. ... The remote FTP server is on a remote ... >> a client to be able to ftp out. ...
    (microsoft.public.windows.server.sbs)