Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to redirect a domain name using a local Windows DNS server? For example if a user query www.yahoo.com 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
add comment

2 Answers

up vote 4 down vote accepted

Yes, but it is very bad practise.

To do it you would add a new zone for yahoo.com 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 yahoo.com 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
add comment

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

local ip add www.yahoo.com

share|improve this answer
2  
That's a rather incomplete answer. The DNS server would also need to host the yahoo.com 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
add comment

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