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

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 hour 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 hour 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...

2 hours 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...

3 hours 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...

6 hours 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!

6 hours 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...

7 hours 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.

9 hours 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...

9 hours 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...

10 hours 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...

13 hours ago by lojolondon on Open Data Institute will act as biz incubator
J.A. Watson

Good stuff Jake, very interesting. Thanks. jw

13 hours ago by J.A. Watson on xTreme Triple Booting: Linux, Mac & Windows
openhgs

"the cost of a second LCD screen is about the same as one day of an office worker's time, so this should soon be recouped in extra productivity."...

15 hours ago by openhgs on Windows 8 could speed multi-monitor uptake
Thomas Gellhaus

I also installed the KDE version; I also will probably try out razorqt since I really haven't had a chance to before. I'm looking forward to the...

1 day ago by Thomas Gellhaus via Facebook on Mageia 2 Released
francisabigail

Acquiring when reinvention/cannibalization is too challenging for a large organization can be an excellent strategy- still, so many mergers stumble...

1 day ago by francisabigail on Ariba buy parks SAP on Oracle's cloud turf
apexwm

All of the feedback regarding using a touch monitor for a desktop PC is right on. Several months ago, we installed a "demo" multitouch all-in-one...

1 day ago by apexwm on Windows 8 could speed multi-monitor uptake
191706

anyone wanting to triple boot *their* own Mac

1 day ago by 191706 on xTreme Triple Booting: Linux, Mac & Windows
SoapyTablet

Cont.. Biggest Bugbear: Win7's stop-animate-go approach to work, you develop a staggered (not in the above alchohol sense of the word) approach to...

1 day ago by SoapyTablet on Windows 8 could speed multi-monitor uptake
SoapyTablet

Ah the joys of Windows 8 Consumer Preview... If Windows 7 was 'Vista with Lipstick', whats Windows 8? Vista with Lipstick, the morning after?...

1 day ago by SoapyTablet on Windows 8 could speed multi-monitor uptake
daveveej

Though the metro look is quite cool on the windows mobile platform I think that think that microsoft ARE MESSING THINGS UP because what has they...

1 day ago by daveveej on Windows 8 could speed multi-monitor uptake