Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If my website has an IP address of X.X.X.X, then can I have a URL that appears to be a subdirectory, such as, be mapped to a totally different IP address (say, Y.Y.Y.Y)?

If not, why? If so, how and what kindo of DNS configuration does this require?

share|improve this question
Can you explain why you want to do this, there are similar solutions you can do (redirect, virtual directories, ect...) that may work, but we need to know more about what you are trying to accomplish to be able to tell you which one will solve your underlying problem. – Scott Chamberlain Jun 3 '13 at 19:58

1 Answer 1

up vote 3 down vote accepted


This is because the part that deals with IPs (DNS) does not know anything about the request URL.

When your web browser tries to go to, it first pings the DNS server and asks who is, and gets back X.X.X.X. It then asks X.X.X.X for /fizz.

The problem is the DNS server (which translates into X.X.X.X) never hears about the /fizz part of the URL at all, so it cannot return a different IP for it.

It can return a different ip for a different subdomain, though: -> X.X.X.X -> Y.Y.Y.Y
share|improve this answer

Your Answer


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.