Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Win 2K Server DNS: Forcing domain name to specific IP address

Posted on 2004-08-24
5
Medium Priority
?
229 Views
Last Modified: 2010-03-18
I can use my Hosts file to override DNS and point a specific name / domain to an IP address, but I want to make this change for everyone at this company. Since our primary domain controller (Windows 2000 Server) is running DNS services, I figured I could probably use that, but I'm not sure of the exact procedure for doing this. If anyone can help me out, I'd appreciate it.

- Jonathan
0
Comment
Question by:gr8gonzo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:adamdrayer
ID: 11891778
Start -> Programs -> Administrative Tools -> DNS

Open the Server, then open "Forward Lookup Zones", then right-click the domain name and select "New Host"

Then type in the computer name and IP address.  Click the checkbox if you would like a reverse DNS entry associated with this.  (recommended)
0
 
LVL 35

Author Comment

by:gr8gonzo
ID: 11893574
That's for a computer that's on my network with a computer name.

Basically, what I want to do is force all computers on our network to go to 123.123.123.123 when they try to go to www.microsoft.com.

I can do this in my HOSTS file by adding these lines:
123.123.123.123       microsoft.com
123.123.123.123       www.microsoft.com

However, I want the same effect to apply to all computer on my network by using DNS on Windows 2000 server.

- Jonathan
0
 
LVL 15

Accepted Solution

by:
adamdrayer earned 600 total points
ID: 11893896
You can create a new primary zone for whatever domains you want to redirect.

1. Right-click "forward lookup zones" and click "create new zone"
2. Make it a primary.  Then call it microsoft.com
3. Make a record for www
0
 
LVL 35

Author Comment

by:gr8gonzo
ID: 11915022
Okay, I've created a new forward lookup zone, but I'm not clear on making a new record. I'm used to using BIND on Linux systems, so this is a bit different as far as some wording and interfaces go. Here's what my Forward lookup zones look like after creating the new domain's forward lookup zone

[-] headquarters.companyname.com          Active Directory-integrated
     [+] _msdcs
     [+] _sites
     [+] _tcp
     [+] _udp

[-] companyname.com                              Standard Primary
     headquarters

(You can correctly assume that I was using microsoft.com just for an example of what I was trying to do.) Essentially, we just updated our company web site, and there are now two versions - one for the public and one for employees. Each has its own IP address, so I want the employees to be able to go to our web site but be directed to the IP address that has the "internal" version of our web site.

I don't know why the "headquarters" folder was automatically added to the companyname.com zone - this worries me a bit. I don't like extra things being created without me creating them.

Anyway, I right-clicked on the main companyname.com folder, clicked on New Host, and used "www" as the name (without the quotes), and put in the new IP address. This seems to have worked - my computer now correctly redirects to the new web site. However, I also want companyname.com (without the www. prefix) to redirect to that new IP. How can I do this? (Added 25 points)

- Jonathan
0
 
LVL 35

Author Comment

by:gr8gonzo
ID: 11915227
Nevermind - I created a new host in the same way without using a "name" and after it prompted me that it might not be a valid name, I said OK anyway, and a few minutes later, my workstation was resolving correctly. Thanks!

- Jonathan
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Configuring network clients can be a chore, especially if there are a large number of them or a lot of itinerant users.  DHCP dynamically manages this process, much to the relief of users and administrators alike!
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question