0

Let's say I have a site called test.website.com that I'd like to forward to www.website.com/test.

How can I achieve this via Windows Server 2008 DNS?

I've configured this for external users via GoDaddy Subdomain Forwarding but I can't seem to figure out how to do this internally via Windows DNS.

I tried setting up a CName to do this and although it will redirect pings to the desired URL, it doesn't seem to work for the website itself.

This seems like something basic but I can't seem to figure it out. Thanks for any help in advance.

Windows Ninja
  • 2,546
  • 18
  • 46
  • 70
  • @Chris S Care to share where the question has been asked before vs. flagging the post without offering the information? – Windows Ninja Dec 03 '13 at 20:02
  • The question referenced above is not the same question. I was asking how to redirect to a different URL and that was asking how to resolve to a specific port. This should not be marked as a duplicate. – Windows Ninja Dec 04 '13 at 13:09
  • The answer [here](http://serverfault.com/a/74371/3038) is the best fit for your problem. DNS will get you as far as the web-server itself, once it's there it's up to the server software to redirect to a different URL. For IIS that would probably be a new name-bound virtual server rooted in the `/test` folder. – sysadmin1138 Dec 04 '13 at 13:25
  • I agree the answer here is the best fit I just don't believe this was a duplicate question. – Windows Ninja Dec 04 '13 at 13:37

1 Answers1

2

You cannot. A DNS server doesn't have this feature.

Sites like Godaddy set a DNS record to point at an HTTP(S) server which send out the proper redirects.

Zoredache
  • 128,755
  • 40
  • 271
  • 413