Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to redirect a domain to a host on my local network.

For example locally redirects to:

What type of DNS record do I need?

share|improve this question

migrated from Aug 13 '10 at 18:28

This question came from our site for professional and enthusiast programmers.

A CNAME. But ask on, please. – zneak Jul 28 '10 at 5:07

You need a CNAME record.

But I agree; we should have some easier functionality for moving between the StackExchange sites.

share|improve this answer

CNAME won't work. You can't even create a CNAME pointing to host.yourdomain.local because you are not hosting the domain "".

You can create a subzone called "", then a CNAME called "www" pointing to your own host.yourdomain.local. But then your internal users who use your DNS for name resolution won't be able to resolve other hosts under "" such as "" as your subzone doesn't have that record. Or you can create a wildcard record "*" in your subzone "", pointing to yourhost.yourdomain.local, then everything under will be brought to yourhost. This is sort of a DNS hijack, albeit internally only.

With that said, strictly speaking of the example you gave, it's a very interesting setup. Why would you want to re-direct traffic to your own host?

share|improve this answer

Your Answer


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