Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2003

Solving DNS Problems

Resolve conflicts between split-brain DNS and AD-integrated zones
RSS
Subscribe to Windows IT Pro | See More Active Directory (AD) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

If you've ever implemented Active Directory (AD), you know that DNS is a necessary evil. DNS is a vital part of AD planning—if you want AD domains, you must first set up DNS. More than almost any other Microsoft tool, AD and its underlying DNS system require planning. The "click first, think later" approach is a prescription for trouble. However, because of some AD-specific needs, making DNS work with AD can be problematic even for a DNS veteran. Let's review some essential principles for making DNS work in support of AD and take a look at some cool new DNS features in Windows Server 2003.

Setting up an AD domain requires first setting up one or more DNS servers to host a DNS zone of the same name. Note my use of the terms domain and zone. Domain can have two different meanings. You can speak of a DNS domain named bigfirm.biz and mean domain in a way that has nothing to do with AD or any Microsoft software. You can also refer to an AD domain named bigfirm.biz—that kind of domain would have little to do with DNS and everything to do with Microsoft security software. To avoid confusing DNS domains with AD domains, I'll use the term zone as a synonym for DNS domain.

Suppose Bigfirm has a DNS server hosting a bigfirm.biz zone. This zone includes a Web server and some email servers that Bigfirm wants its customers to find. However, Bigfirm doesn't want to use that DNS server and that externally hosted bigfirm.biz zone for its AD implementation because AD stores sensitive data that Bigfirm doesn't want to display to the public Internet. Therefore, as most AD designers do, Bigfirm configures a set of DNS servers that aren't visible to the public Internet and that host a bigfirm.biz zone that's separate from the public bigfirm.biz zone. This approach is called split-brain (or split-horizon) DNS.

Split-Brain Essentials
Split-brain DNS is fairly simple to implement, and I've covered it in detail in other articles. (For example, see "Troubleshooting DNS-Related AD Logon Problems, Part 2," February 2002, http://www.winnetmag.com, InstantDoc ID 23565.) To briefly reiterate, to set up split-brain DNS, Bigfirm would first install DNS server software on several servers. Then, Bigfirm would configure every system in its intranet (i.e., the network that will need to find the AD domain controllers—DCs) to consult one or more of those internal servers whenever they need DNS information. DNS clients inside the intranet must never query DNS servers on the public Internet; otherwise, they'll never be able to find the DCs. The same holds true for the internal DNS servers: Configure them to refer only to internal DNS servers for name resolution. (Even though these internal DNS servers look amongst themselves for name resolution, they will be able to resolve names on the Internet.)

Now, Bigfirm can set up one of its internal DNS servers as the primary DNS server for the internal bigfirm.biz zone and configure that zone to permit dynamic updates. Bigfirm would then set up every other intranet DNS server to be a secondary DNS server for the bigfirm.biz zone, each pulling copies of the bigfirm.biz zone from the primary bigfirm.biz server. This simple approach lets you host split-brain DNS for one AD domain.

Adding AD-Integrated Zones
For many people, the preceding summary isn't sufficient because I've left out one important consideration: AD-integrated zones. Using primary and secondary DNS servers for a given zone is the standard way to use DNS servers—a method that the popular BIND DNS server software first used and that Windows 2000 Server's and Windows 2003's built-in DNS server software mimics. This model permits one primary DNS server and an unlimited number of secondary DNS servers for the zone. Any changes to the zone must be made on the primary DNS server, which then copies the changed zone to the secondary servers. In Win2K parlance, you might call this scenario a single-master model because only one of the DNS servers responsible for a zone can accept changes.

The single-master model is a problem for the primary/secondary approach. Because Windows 2003, Windows XP, and Win2K use dynamic DNS (DDNS), every workstation and server attempts to reregister its name and address with its DNS zone every day at boot time. (That's a simplification. Actually, five different events trigger a reregistration.) In the primary/secondary model, only the primary DNS server for a zone can accept changes to that zone. If a firm has several thousand machines, the primary DNS server could find itself assaulted by thousands of DNS registration requests within the space of a few minutes in the morning.

With AD-integrated DNS zones, Microsoft lets you have not just one but many primary DNS servers—the DNS zone information no longer resides in a file on the DNS server but is instead part of the AD database. Because Win2K replicates the AD database to every DC in the domain, every DC can see and even change the DNS information.

AD-integrated zones also secure your network by restricting DDNS registrations to domain members. In a simple primary DNS zone that accepts dynamic registrations, any machine can register DNS records. In theory, then, a rogue machine can register records so that it appears to be a DC. Although the simple act of a system falsely claiming to be a DC wouldn't compromise any data on your network, that prospect isn't exactly pleasing and seems like the first step toward an attempted hijacking of passwords. In an AD-integrated zone, however, a rogue machine would have a more difficult time with such false claims. Before accepting a DNS registration, AD-integrated DNS servers ensure that the machine offering the registration is a member of the domain.

   Previous  [1]  2  Next 


Reader Comments
I don't quite understand the 'problem' with an Island DNS. I understand how it could come up, but why is it an issue?

Eric February 25, 2004


I'm still confused on how 'island DNS' can occur. You state:
Each DC registers its DC-identification information in its copy of the DNS zone but never replicates that information to the other DC/DNS servers

Because these are AD integrated zones, wouldn't the DNS info replicate during normal AD replication? I recently setup two DC/DNS servers in a root domain with each servers primary DNS pointing to the opposite machine while setting the secondary dns on each server as its own. Everything seems fine??

Shawn February 25, 2004


I attended the conference yesturday (2/26/04) in Dallas, you're presentation was quite good!! Wish I had it on video for my collegues, better yet, wish they could have been there.

The young lady from Network Essentials was well prepared also.

As for the others, their wheels were falling off, but a nice effort nonetheless (I could tell that perhaps they were enduring fatigue and the rigors of making a presentation using "someoneelsesppt" stufff). Please inform the <other> Mark, "whack" is "\ ".
(as in back-slash or backslash-backslash 'whack-whack' \\)
One must know their whacks and slashes!!

A great effort by all!!!
Good stuff! (good breakfast and lunch too!)

Regards,


Jeff Armstrong February 27, 2004


Just once I wish Mark would write an article on smallfirm.biz which only uses 1 server and runs AD, DNS, and everything else under the sun on it.

Gym Nasium March 04, 2004


Hi Mark, (this maybe the wrong place to ask this so please pass it on if it is) i have read this doc and several others on the site and i believe i have exactly what you have described but have a situation that i cant work out.
We have 2 zones mycomp.co.uk (legacy machines and NT4 domain) and mycomp.com (windows 2003 AD domain and machines). We started off with 1 master server for both forward lookup zones and several secondary to this. We have 6 remote sites with different subnets so created the primary reverse lookups for these on the local DNS servers (i should point out that any DNS server is windows 2003 and an AD DC). This worked upto the point when you wanted remote sites to allow Dynamic updates, as we did not have permission to update forward zones.
We took a little guess and make the whole lot AD intergrated... all seems great apart from one thing (and its fairly major) if i move a client from one subnet (DHCP with updates turned on and allowed) to another subnet (Same settinsg differnt servers) the old DNS records are removed but it seems random whether my new IP address gets replicated to all other sites (the local site works fine).
I used to work with UNIX Bind and text files that all worked on sequence numbers... all our servers seem to have different sequence numbers.. is this correct? How can i force all servers to have the same records? lots of questions.. sorry but thanks.. i have some things to try from your article!!

Matt Harris May 05, 2004


As Mark I also think DNS is vital in AD but I am not agree with him about the importance of the prior planning. The "click first, think later" approach is a viable alternative here. DNS is vital yet it is very very easy to configure it and to solve the problems related to it. You should take the following guidelines:
1) There must be DNS server for every AD domain
2) There must be a zone corresponding to that AD domain at that DNS server
3) You must enable Dynamic update on that zone
4) All the computers including the DCs must be configured to use that DNS server

That's all! You can easily change the DNS server if you have a problem with the current one if you follow the above points. Or you can easily delete or create zones on the DNS servers

Murat May 18, 2004


Great article! What about a single domain with multiple sites? If I put a DC at each site and all sites are connected via a WAN (say a T1), would it be best to do an AD Integrated DNS and have DNS hosted at each site?

computahguy January 16, 2005


I too would like an article for those of us with a local intranet, no ISP hosted anything and a transition to Win2003SRv and DNS - step by step, noting the 'single best way' and so forth.
But like the article. Gives me a good search basis.

Bonedoc February 01, 2005 (Article Rating: )


In Windows Server 2003, the recommended DNS configuration is to configure the DNS client settings on all DNS servers to use themselves as their own primary DNS server, and to use a different domain controller in the same domain as their alternative DNS server, preferably another domain controller in the same site. This process also works around the DNS "Island" problem in Windows 2000. You must always configure the DNS client settings on each domain controller's network interface to use the alternative DNS server addresses in addition to the primary DNS server address.

This problem does not exist in Windows 2003 DNS or Windows 2000 DNS post SP2.


Jerodp August 23, 2005 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

Microsoft Delivers Service Pack 2 Beta 2 for Vista, Server 2008

Microsoft on Tuesday announced the availability of the Beta 2 version of Service Pack 2 (SP2) for Windows Vista and Windows Server 2008. Since both operating systems were developed from the same code base, they have a common servicing structure and thus ...


Active Directory (AD) Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

Managing Unix/Linux with Microsoft System Center Operations Manager 2007 Cross Platform Extensions Beta

Addressing the Insider Threat with NetIQ Security and Administration Solutions

Related Events Concrete Ways to Make Sure Your SharePoint Deployment Doesn't Blow Up

PCI Requirements for Windows and Active Directory: Straight from a Certified Auditor

Windows, Unix, Linux Interoperability

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Windows 2003: Active Directory Administration Essentials

Related Active Directory (AD) Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing