Build a scalable DNS infrastructure

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

Topics

scale, Network, DNS

COMMENT

DNS (the Domain Name System) is the Internet standard used for translating the "human-friendly" host names of computers on a TCP/IP network into their corresponding "machine-friendly" IP addresses. If you want users to be able to use host names to connect to computers on an IP network (for instance, by typing zdnet.co.uk into their browser's address window instead of the ZDNet UK Web server's public IP address), you must provide them with a DNS server that can resolve those names.

A central DNS database holds the information about registered top level domains (for example, .com) and public DNS servers on the Internet direct users' queries to the proper DNS server for a particular second level domain (for example, zdnet.co.uk). Most companies maintain their own DNS servers for their domains, making DNS a distributed database.

If your company has registered a domain name (or is planning to do so), you have two choices: you can host your own DNS servers or have a hosting service do it for you. If you use a web hosting company to host your Web servers, they will usually also host your DNS at no extra cost. If you choose to set up your own DNS servers, you need to register them with your domain registrar so they can point your domains to your servers.

Even if you don't make any servers available to the Internet, you still need DNS if your internal network is a Windows 2000 or later domain. Windows Active Directory requires DNS to resolve host (computer) names to IP addresses on the LAN.

If you're just setting up a new network, it pays to plan ahead for scalability as you design your DNS infrastructure.

The DNS hierarchy
The first step in creating a DNS infrastructure that will scale with your business is to understand how DNS works. The system is structured in a hierarchical manner, both logically and physically.

The logical hierarchy
On the logical side, the DNS namespace contains several levels:

  • Root level. In a DNS address, this is represented by a dot (.)
  • Top or first level. This represents a domain type (such as .com, .org, .net, .edu, .mil, .gov, etc.) or a country (such as .uk for the United Kingdom, .it for Italy, .fr for France, .cn for China, .ru for Russia, .au for Australia, etc.).
  • Second level. This is the domain name that you can register for an annual fee with official registrars (accredited by ICANN) such as Network Solutions (the original registrar), GoDaddy.com, Joker, Tucows, Register.com, Dotster and many others.

Each second level domain must be unique within its top level domain. In other words, there can be only one mydomain.com, but there can also be a mydomain.net, mydomain.org, and so forth. Some top level domains are restricted. For instance, only educational institutions can register in the .edu domain, only US government agencies can register in the .gov domain, etc.

NOTE
Although technically all Internet domain names end with a dot to represent the root level of the namespace, DNS software in use today does not require you to enter the ending dot to resolve names.

The physical hierarchy
The physical machines that contain parts of the distributed DNS database are also structured in a hierarchical configuration:

  • DNS root servers have responsibility for the . (root level) domain. They contain a database of servers in the next level down, those that are responsible for the top level domains such as .com or .net.
  • The top level domain servers contain a database of name servers that are responsible for the second level domains.
  • The second level domain servers (such as the DNS server or servers for your organisation's domain) handle queries for actual DNS addresses (such as www.mydomain.com, where "www" is the host name of a web server) and subdomains, such as accounting.mydomain.com.

Here's how this actually works: a client program, such as a Web browser, that needs to connect to another computer using a domain name (for example, www.mydomain.com), sends the query to the DNS server that the client computer is configured to use (for a business computer, this would probably be one of your organisation's DNS servers; for a home computer, it might be the ISP's DNS server). If the address you want to resolve is in the .com top level domain, your DNS server sends a query to the top level DNS server for .com. That top level server has in its database the server that handles the mydomain.com domain, so it queries the mydomain.com DNS server and asks for the IP address for www.mydomain.com. Then your browser can use the IP address to...

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Philip Charles Cohen

Read about it and weep, John Donahoe ... In addition to Visa’s V.me, there is now MasterCard’s PayPass digital wallet soon to arrive; another...

1 hour ago by Philip Charles Cohen via Facebook on PayPal takes phone-based payments to the high street
apexwm

Leslie Satenstein : Where have you ever seen Mozilla even mention this? Firefox is the most popular browser in the GNU/Linux OS, so I don't see...

2 hours ago by apexwm on Firefox rapid release improves Fedora Linux
songmaster

SHleG: Do you remember building a clockwork scorpion kit (I'm pretty sure I have a photo of it somewhere) — I think it was called something like...

3 hours ago by songmaster on Software with everything
Chris Wortman

Good I love Yahoo! Their search engine is getting better than Google as of late. I find more of what I want on the first page, and usually within...

4 hours ago by Chris Wortman via Facebook on Linux Mint 13 ramps up for KDE release
PatrickG

openhgs has made the point for Windows 8 multiple monitors without realising it! With Windows 7 you have to switch the mouse and so your focus...

6 hours ago by PatrickG on Windows 8 could speed multi-monitor uptake
Leslie Satenstein

Mozilla has threatened to stop supporting Linux. I guess that UBUNTU is going with another browser. I indicated that if Mozilla stops supporting...

7 hours ago by Leslie Satenstein via Facebook on Firefox rapid release improves Fedora Linux
Andy Bolstridge

Much as I abhor Microsoft's licensing practices, this is almost certainly down to purchasing IT equipment via 3rd party consultants - you get the...

7 hours ago by Andy Bolstridge via Facebook on 6 million wasted licences and £1,200 PCs: welcome to government IT
Jack Schofield

@openhgs Windows users have had multiple desktops since Linus started writing Linux. They just haven't shipped as standard because not enough...

24 hours ago by Jack Schofield on Windows 8 could speed multi-monitor uptake
Jack Schofield

@Phil at Cloud4 What, Microsoft gets £1,200 per PC and £1,622 per server? Gosh, I'm amazed....

24 hours ago by Jack Schofield on 6 million wasted licences and £1,200 PCs: welcome to government IT
craigsc

You guys have no idea what is going on at Autonomy. Autonomy could have been a much more profitable organization. The sales operations at Autonomy...

1 day ago by craigsc on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Moley

How does this impact on dual or multi booting? Seems to me to more or less prohibit this, from Windows 8 anyway. Will Grub 2 recognise Windows 8,...

1 day ago by Moley on Windows 8 start-up speed forces USB boot workaround
apexwm

I don't understand why there cannot be a slight pause during the boot process so the user can press a key. Many operating systems do this, even if...

1 day ago by apexwm on Windows 8 start-up speed forces USB boot workaround
Gavin Goodman

You can now buy the Xi3 modular computer in the UK at http://www.ocdistribution.com . This can be bought with the Tand3m software, pricing and...

1 day ago by Gavin Goodman on CES 2012: Xi3 microSERV3R
Phil at Cloud4

I agree: Mike Lynch can clearly build a business and manage strategy. I suspect the exit of Mike is more likely the end of a planned handover...

1 day ago by Phil at Cloud4 on HP cuts 27,000 staff as Autonomy chief Lynch leaves
Phil at Cloud4

This is unbeleivable government wastage with only one winner... Microsoft 1 - Tax payer Nil!

1 day ago by Phil at Cloud4 on 6 million wasted licences and £1,200 PCs: welcome to government IT
Mispam

So what do you do when you can't boot into windows? Why can't I just hold Shift while I power up instead of having to boot into windows and click a...

1 day ago by Mispam on Windows 8 start-up speed forces USB boot workaround
apexwm

I've also seen that Mac OS X for Intel machines is supposed to run in VirtualBox, which would also be a nice solution. I've never tried it though.

1 day ago by apexwm on xTreme Triple Booting: Linux, Mac & Windows
dave heasman

What I wonder is why when companies are caught bang to rights in not providing contracted services, people bend over to smear the customers? Surely...

1 day ago by dave heasman on Virgin throttles broadband for high-speed customers
pjc158

Strange statement from HP regarding Mike Lynch and not capable of scaling a company. Autonomy was a $7bn purchase which started as a small company...

1 day ago by pjc158 on HP cuts 27,000 staff as Autonomy chief Lynch leaves
lojolondon

Or - possibly, they will destroy business by ensuring people do not invest where there is no return. Another socialist idea, well beyond it's...

2 days ago by lojolondon on Open Data Institute will act as biz incubator