Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is it possible to redirect a domain name using a local Windows DNS server? For example if a user query it should be redirected to an Internal server.

share|improve this question

closed as not a real question by Ward, John Gardeniers, Michael Hampton, Ladadadada, Scott Pack Oct 22 '12 at 20:08

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Whatever you're trying to achieve, there is almost always a better way. – John Gardeniers Oct 22 '12 at 9:02
It's possible but it sounds like you should be using an http proxy server and firewalling http traffic so all users are forced to go via the proxy. The proxy can be configured to block certain websites. – Colin 't Hart Oct 22 '12 at 9:43
up vote 4 down vote accepted

Yes, but it is very bad practise.

To do it you would add a new zone for and then add a www A record.

Consider, users and possibly your servers (including mail if you have internal SMTP using the DNS server) will no longer be able find any other record in the domain. You would need to statically add each if you want them to continue working because they will only be able to lookup what is in your DNS server.

The correct way to redirect DNS requests or web requests if that is your purpose is to use a proxy server. Some do both DNS and HTTP/HTTPS, but most of the time only a web proxy is needed.

share|improve this answer
Thank you for your reply Bernie.It helped me. – Tony Oct 30 '12 at 8:50

Of course it is, if that DNS server is primary DNS for users just add static record

local ip add

share|improve this answer
That's a rather incomplete answer. The DNS server would also need to host the zone, otherwise it will pass the query on to be processed up the line. – John Gardeniers Oct 22 '12 at 9:00
Thank you John. – Tony Oct 30 '12 at 8:53

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