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

Freebies202

Duplicate comments are not made intentionally. Its very good to know that now you are keeping check on this problem because sometimes a commenter...

4 hours ago by Freebies202 on Microsoft fixes blog comments, speeds up blogs with open source
kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

12 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

13 hours ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

14 hours ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

16 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

18 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

19 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

19 hours ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

19 hours ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

20 hours ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

22 hours ago by GHar123 on ACTA stumbles in Germany
JCB33

How dare film makers, artists or anybody that invests in creativity stop us pirating their works for free. I want to be able to walk into my local...

1 day ago by JCB33 on ACTA stumbles in Germany
Moley

@GrueMaster. I prefer horses for courses rather than one size fits all. I, and I suspect most other computer users, do not really wish to have...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint
greycynic

The product that scares me every time I have to use it is the Office 2007 version of Excel. The first bug that I found was applying the median...

1 day ago by greycynic on Ten flawed products that derail productivity
GrueMaster

Nice review and very informative. One thing I'd like to add (in reply to whs001's 1st question), the main reason to have the same interface from...

1 day ago by GrueMaster on A tale of two distros: Ubuntu and Linux Mint
Frederick Wrigley

I'be been using Mint 12 since the RC came out, and I am far more happy with the Cinnamon, the Mate, and, yes (with extensions), theGnome 3...

1 day ago by Frederick Wrigley via Facebook on A tale of two distros: Ubuntu and Linux Mint
bdantas

Excellent article. One small correction, though--although a fresh installation of Linux Mint 12 will, indeed, provide the user with a version of...

1 day ago by bdantas on A tale of two distros: Ubuntu and Linux Mint
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Alan Ralph

In related news, the ISPs club together to get the members of the Home Affairs Select Committee (ya goofed on that part, ZDNet UK) copies of "The...

1 day ago by Alan Ralph via Facebook on MPs urge ISPs to take down terrorist material
Moley

For Gnome 2 die-hards, it is possible to add icons to the bottom panel (or top top panel, if you prefer) which provide the exact Gnome 2...

1 day ago by Moley on A tale of two distros: Ubuntu and Linux Mint