Help - Search - Members - Calendar
Full Version: Subdomains with a "." in them?
The Planet Forums > System Administration > DNS Hosting
gordonrp
Can I have a subdomain with a dot in it? Or do I need to setup a subdomain of the subdomain somehow?

upload.video in A for putfile.com ok?

http://upload.video.putfile.com

Hoping thats right, if not anyone know what I need to do?
eddy2099
I've done that before for the fun of it. It is like the subdomain of a subdomain. It actually works.

You however need an A record for video.putfile.com first .

upload.video.putfile.com would be a subdomain of video.putfile.com which is a subdomain of putfile.com
gordonrp
QUOTE (eddy2099)
I've done that before for the fun of it. It is like the subdomain of a subdomain. It actually works.

You however need an A record for video.putfile.com first .

upload.video.putfile.com would be a subdomain of video.putfile.com which is a subdomain of putfile.com


Ok thanks, I will put in a DNS ticket.

edit: can I put in a A for video.putfile.com and upload.video.putfile.com in PUTFILE.COM

Or do I need a new site in orbit? e.g. video.putfile.com
gordonrp
Yup that worked. Two A records for putfile.com:

video.putfile.com
upload.video.putfile.com

http://upload.video.putfile.com works! Thanks icon_smile.gif
cprompt
QUOTE (eddy2099)
You however need an A record for video.putfile.com first .

I'm not so sure about that. I've done this quite a few times and I have never created an A record for sub.domain.com before creating the A record for another.sub.domain.com.

Technically, I believe that domain.com is a zone, and that on it's own, sub.domain.com belongs to the domain.com zone. If you create another.sub.domain.com you first have to create a zone called sub.domain.com that another.sub.domain.com belongs to.

In reality, pretty much all that happens is that when your DNS server is asked a question about a domain, it just scans down the list until it gets a hit, so if you asked for upload.video.putfile.com and your dns records are:

putfile.com A 1.2.3.4
www.putfile.com CNAME putfile.com
database.putfile.com 1.2.3.5
upload.video.putfile.com 1.2.3.6

your dns server would just work its way down the list until it came to a match. Simple as that, as the client is not querying "video.putfile.com", it is querying the whole "upload.video.putfile.com".

For anyone who has ever worked with Microsoft DNS, you would physically create a zone called video.putfile.com and add upload.video.putfile.com in to that zone. You could also create an A record for video.putfile.com in the putfile.com zone, but there's no technical reason why.
patriotcow
Hmm when I do it I just add 1 subdomain with .'s in them.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.