Microsoft DNS / Active Directory - Changing IP Address for external domains

We are using Microsoft DNS with Active Directory. We would like to change that if anyone types in a domain name that they will be redirected to either a IP Address or web page we specify. For example....

User A types in http://www.yahoo.com and they would be redirected to http://www.google.com
User B types in http://www.news.com and they would be redirected to http://www.cnn.com

Anyone have any advice?

Thanks,
Brad Wickwire
redbrad0Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

adamdrayerCommented:
you would need to create a new zone for each domain.  Like yahoo.com  or news.com.  Then create a static 'A' record called WWW that points to the IP address of the destination.  You may also be able to do it by using a CNAME record and point it to the 'www.google.com.' instead of using an 'A' record to point to the IP address.

The only problem is that it will now be authoritative for all yahoo.com addresses.  this means that messenger.yahoo.com will not work, which will kill your yahoo messenger unless you create a static record for it.  When you create a zone, it will no longer go to another DNS server for records that end with that zone.  every address that ends in yahoo.com will be looked up on this server and only this server.

Alternately, you could create HOSTS records on each individual computer.  This gets messy with alot of workstations, but it's the only alternative.  Located in the %system32%\drivers\etc directory, there is a file called HOSTS.  Its just a text file and if you put this:

1.2.3.4    www.google.com

it will direct www.google.com to the IP address of 1.2.3.4.  You can determine google's website's IP address by typing 'nslookup www.google.com' at a command prompt.  That goes for any website.

Redirecting wont work on some websites though.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.