Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to point the domain address to one place and the subdomains to another place?

For example:

mydomain.net -> 183.85.56.74
stuff.mydomain.net -> 174.24.75.1/~place/
share|improve this question

4 Answers 4

Yes, although, to do it, it might vary because there are so many different domain providers. You just need to add A Records to the domain DNS settings.

share|improve this answer

Yes, you can point any level of domain to any IP address.

mydomain.net -> 183.85.56.74
stuff.mydomain.net -> 174.24.75.1
stuff2.mydomain.net -> 174.88.99.1
more.stuff2.mydomain.net -> 199.22.33.1

However, you cannot point to a folder like

174.24.75.1/~place/

DNS will only map names to IP address, and knows nothing of webservers or folders.

share|improve this answer

Yes, this can all be modified by whoever does DNS management for your domain.

share|improve this answer

For the way you are looking to run things, it's not really a DNS issue(@Paul got it right):

  • DNS will only resolve a name (example.com) to an IP address or another name. It doesn't do anything with ports or directing to a specific part of a web server.

  • Apache / IIS / whatever web server you use reads host names when the user requests a page, and gives the browser the page that is correct for the URI it's requesting.

You can use a DNS service like DNS Made Easy, which will do the web redirection for you, but using your web server is better.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.