Forwarding external requests with Win2K DNS servers

When you have problems getting your Windows 2000 DNS server to forward name resolution requests to DNS servers on the Internet, don't assign separate servers for Internet requests. Get to the root of the problem.

You know how DNS is supposed to work. You type http://www.zdnet.com.au into your browser, your DNS server resolves the name into an IP address, and then your browser connects to the Web page at that address and displays it. However, after you set up Windows 2000 domain controllers, Active Directory, and a Windows 2000 DNS server, you may find that your systems are unable to resolve any Web addresses for resources outside your local network.

This problem occurs because Windows 2000 can sometimes configure its DNS server to act as a root server. As a root server, the DNS server will resolve only addresses that it has DNS records for (usually only local resources). I'm going to show you why this happens and how to fix it.

What's the problem?

In a Windows 2000 environment, DNS fills two roles. First, Windows 2000's DNS can provide traditional Internet name resolution for clients on your network that need to access Internet resources. Second, Windows 2000's DNS can provide access to Active Directory and local network resources.

When you first install DNS and Active Directory on your network, Windows 2000's Setup program can cause these two roles to come into conflict with each other. Setup can accidentally configure DNS to resolve Active Directory resources but not allow clients to access Internet-based DNS servers.

When Setup runs, it checks your network for other DNS servers. If it doesn't find any, Setup assumes that it's the only DNS server on the planet and sets itself up as a root server. By definition, root servers are authoritative. Basically, they are DNS know-it-alls that don't require help from other DNS servers.

In a network that's not connected to the Internet, having your main DNS server configured as a root server isn't a problem. Because there aren't any external addresses to worry about, the root server indeed knows all there is to know about addresses on your network. However, things become complicated when you connect your network to the Internet. At that point, your internal DNS server can't know the address for every Internet resource, so it requires help from external DNS servers.

If Setup has configured your DNS server as a root server, the DNS server won't look for help from external DNS servers. As a matter of fact, if you try to configure forwarders or root hints on a Windows 2000 DNS root server, it will refuse to accept the information.

Tearing it out by the root

So what do you do to allow your internal Windows 2000 DNS server to forward queries to external DNS servers for addresses it doesn't know? You manually administer an attitude adjustment to your DNS server to make it realise that there are other DNS servers it should refer to, essentially removing the DNS server's root server configuration.

To do so, click Start | Programs | Administrative Tools | DNS. This will start the DNS Management Console. Expand DNS Server object in the left pane. Expand the Forward Lookup Zones folder. Select the zone folder that is marked with a period, right-click on it, and select Delete.

If you're using Active Directory Integrated Zones, the DNS MMC will display a dialog box informing you that when you delete the zone, the MMC will also delete the zone from Active Directory and any DNS server that references Active Directory. Click Yes to remove the zone from both Active Directory and the DNS server.

Setting up forwarders

After you restart your Windows server, you can configure DNS to forward to other DNS servers. Start the DNS MMC again, right-click on your DNS server, and select Properties. When the Properties window for the server appears, click the Forwarders tab. Select the Enable Forwarders check box.

If this check box is grayed out, your DNS server is still configured as a root server. Check to make sure that you've selected the right DNS server and properly removed the root zone folder as mentioned above.

In the IP address field, enter the DNS servers you want to forward to. You'll need to enter the IP address of each server one at a time, clicking Add after each one. When you have finished, click OK.

Going forward

Once you remove the DNS server's root capability and configure forwarders on your DNS server, your workstations will be able to access both internal and external network resources. By doing this, you can save yourself the headache of entering multiple DNS addresses on client workstations (or setting them up in DHCP). Simply direct client requests to your Windows 2000 DNS server, and it will handle the requests that it can and forward all other requests to the external DNS servers.


Editorial disclaimer: The authors and editors have taken care in preparation of the content contained herein but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for any damages. Always have a verified backup before making any changes.

TechRepublic is the online community and information resource for all IT professionals, from support staff to executives. We offer in-depth technical articles written for IT professionals by IT professionals. In addition to articles on everything from Windows to e-mail to fire walls, we offer IT industry analysis, downloads, management tips, discussion forums, and e-newsletters.

©2001 TechRepublic, Inc.

Advertisement

Talkback 3 comments

    Very useful. Thank's for the t ...Anonymous -- 25/01/03

    Very useful. Thank's for the tip

    Hey Jonh, I'd like to express ...Anonymous -- 30/03/04

    Hey Jonh,

    I'd like to express my absolutely satisfaction with your explanation. Simple, objetive and efficient.

    Excelent!

    Thank you so much!
    Rgds

    Good Stuff - I do have one que ...Anonymous -- 21/11/04

    Good Stuff - I do have one question. Q - For an external DNS do I add the IP address of my external gateway (router internet access) in the FWDr list?

Add your opinion

Latest Videos

Sponsored content

Power Centre - Content from our premier sponsors

Blogs

  • Suzanne Tindal Sick of broken tender sites
    Some of the state governments desperately need to invest in more user-friendly tender sites so that looking for information on government tenders doesn't have to be a game of blind man's bluff.
  • Array Cyberwar: What is it good for?
    In this week's episode, Cyberwar. What is Australia's place in the world of digital warfare? What are the implications for the NBN?
  • Array Is wholesale-only backhaul just a pipedream?
    The potential acquisition of Pipe Networks by SP Telemedia has raised the question about whether vertically integrated backhaul providers will mean higher wholesale prices for ISP customers.
  • More blogs »

Tags

Back to top

Featured