![]() | The OutRider Computing JournalA free monthly column for users, administrators, programmers and hobbyists who use UNIXlike Operating Systems. Home | Search | Site Map | Feedback | Subscriptions |
NOTE: This article was originally published on a previous project by jrf. It has gleaned for use here.
DNS came about quite simply because using hostname resolution was getting to be a severe burden. There was a "Master Host File" maintained at one time, unfortunately it simply got too big and cumbersome. Enter the Domain Name System. The Internet like any other Network has a hierachal structure to it. Both through IP address schema and Domain Name schema. For the sake of an example, let's say our domain is boogly.woogly.net . The .net is the root domain or top level of the network. Woogly is the Network Name and boogly is the hostname. In addtion to naming ( from right to left ) host.network.root you can also devise host.subnetwork.network.root which is extremely helpful in a large enterprise network. Many organizations breakup functions by sub-domain name.
The DNS Database is a collection of files formatted specifically for the purpose of Domain Name Resolution. The database does differ slightly on Primary and Secondary Nameservers. The files required for the Primary (or Master) Domain Controller are outlined below.
The secondary nameserver requires an /etc/host/resolv.conf, a local host reference (db.127.0.0) and a db.cache exactly like the primary. The only major difference is the format of the /etc/named.boot file. The reason for that is this file points to the Primary Controller. An example of this file can be found at verinet ~ secondary.
Aside from Operating System Specific Methods, there are two ways to Generate the Database. The first way is the mind numbing process of building the databases from scratch. The second (and preferable) method is to use BIND tools to automatically generate the database from input you give it. This requires that you have the domain name and network address ready when you install it-and that you are positive you want the host to be a primary or secondary server.
Surprisingly you will find yourself editing database files more often than you would like. There are some rules you must abide by when altering the database. Take special caution here, not unlike the Windows Registry Database, deviation from ANY of these rules will result in the database becoming corrupted. The only way to fix corruption is to regenerate the database.
This document is enough to get an internal single domain up and running (with the exception of specific automatic generation tools) but, for interaction with other nameservers (within or without of a corporate intranet) I strongly suggest visiting one of the sites listed at the bottom of the page.