twitter




Friday, October 30, 2009

How to make a DNS service for sub-domains?

If i have a domain and make a sub-domain for it, how is it possible that i redirect my sub-domain to any host or stuff using a DNS service? is there any script or something by which this can be done? i am not asking a script which can also make sub-domains automatically. I am just asking a DNS service for ONE sub-domain.



Please help me



How to make a DNS service for sub-domains?





Well, just for you information...



If you have domain like



www.yourdomain.com



then www.subdomain.yourdomain.com is what you are looking for right?



See! while uploading website you have follow certain folder structure.



Where the root folder is www.yourdomain.com on host server and the first page is index.html :)



so its quite easy you have to put another folder called



*subdomain* in your root folder i.e. yourdomain.com



and you are done.



well,you can use scripts which will eventually make folder in root folder.



or



You can do it manualy.



hope this will help



Cheers:)



How to make a DNS service for sub-domains?



In your zone file, add an NS record for the sub domain.



Other Replys:If you want to redirect the sub domain to a different ip address just add an A record in the DNS server and enter the new ip address. For example, if you have an A record for www.something.com that points to xxx.xxx.xxx.xxx you can add another A record that points to a different ip address for new.something.com. If you are wanting to host multiple subdomains on a single ip address you follow the same approach but iis has to be configured with the appropriate host headers to redirect the site. There is similar configuration required for Apache if you want to use a single ip address. The web page itself could perform the redirect too but that would not be as efficient.



Hope that answers your question.

No comments:

Post a Comment