Do I create a zone for the domain in this case?
Main Topics
Browse All TopicsIs it possible to override only some DNS entries on a local DNS Server on Windows Server 2003?
How do I do that?
The background is that I want to override some DNS entries with local addresses, but I don't want to define every address on the domain on my local DNS
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Host file can help you override entries for DNS.
For eg: there is a host A on your DNS named: server1.zone.local and it has an ipaddress of 192.168.1.1
in your DNS Server's HOSTS file, you add following entry:
Server1.zone.local 192.168.1..12
Now, if you ping Server1.zone.local from DNS Server itself, it'll resolve to 192.168.1.12
However, if you ping Server1.zone.local from any client pointing to your DNS server, it will still get the ipaddress in zone which is 192.168.1.1
So, if you plan to override name resolution settings only from your DNS server, HOSTS file modification on DNS would do the job. But if you want to override few entries from all the clients, you'll have to make those entries in CLIENT'S HOSTS file.
I hope it explains the things a bit more clearly before you actually make the change
I tried to add an entry to the hosts file on the DNS server for a host which does not have zone.
If I ping the host on the DNS server itself it uses the overridden entry.
But if I ping the host from a client computer (after I flushed the DNS cache) it did not use the overridden entry. So it did not work.
We use NAT on the LAN. Some servers on this domain are at my location and the DNS should resolve to the local address for clients on the LAN. But other servers on the same domain are located elsewhere.
I would rather not define all IPs for the domain in my local DNS server because there are many hosts and the IP's change over time. But I need to override a few hosts.
* Even if the IPs keep on changing, DNS has a way to scavenge the stale records i.e. the invalid entries.
* But if you need to hardcode some IPs in all the client machines, then possibiliy you can opt for a startup script that would edit the Host file on each client system in your domain with your specific entries.
Hope this works (^_^)
When you say "other servers are located elsewhere", both sites must be somehow connected to each other using some link like T1 line or site-to-site tunnel using routers/firewall. if there is such a connection, make those servers point to DNS server at your end and they will register themselves in DNS.
There has to be a route between these locations. DNS registration will not work over NAT.
I am not sure if i understand your network correctly. Can u give an example of ipaddresses of your internal servers and external servers. When you say some servers are on internet, i assume you mean that they have public IPs. How do they connect to your DC which is internal? or do we have a workgroup setup?
Internal adresses are like 10.0.1.X. The external/public adresses are like 194.x.y.z
The servers in our LAN are accessible from the Internet only on port 80.
The servers in our LAN does not communicate with servers located elsewhere, they just have hostnames in the same domain (URL domain, not WIndows domain)
'lo guys,
> Is it possible to override only some DNS entries on a local DNS Server on Windows Server 2003?
Yes, absolutely.
All you have to do is treat each host as a zone in its own right.
e.g.
bob.domain.com resolves to 212.213.214.215 publicly
bob.domain.com must be accessed via 192.168.1.2 internally
In the DNS Console:
1. Select Forward Lookup Zones
2. Create a new Forward Lookup Zone as Primary / AD Integrated
3. Name the zone bob.domain.com
4. Disable Dynamic Updates for the zone
5. Select the zone and create a new Host (A) Record
6. Leave the name blank. Enter the IP 192.168.1.2
That means the zone name itself, bob.domain.com, will resolve to the IP above. That will list as "(same as parent folder)" under the zone.
HTH
Chris
Hosts meets the requirements of the original question, even if it is high maintenance.
My method will achieve do this using DNS which as far as I can see meets all the requirements of the original question and the later stipulation that DNS was preferred over Hosts.
I would say...
Split: farhankazi (http:#22178738) and, Chris-Dent (http:#22181559)
Unless the author thinks otherwise of course :)
Chris
Business Accounts
Answer for Membership
by: farhankaziPosted on 2008-08-07 at 00:52:01ID: 22178738
On that server you can place those entries with local addresses in HOSTS file (%SystemRoot%\system32\dri vers\etc)