STDI Consulting Inc.
Mississauga Ontario, Canada
First published on January 01, 2006
Zone Files

You will have several zone files. The number depends on your network.

File name:
; dns zone for for
$TTL 3h
; any time you make a change to the domain, bump the
; "serial" setting below. the format is easy:
; YYYYMMDDI, with the I being an iterator in case you
; make more than one change during any one day
;         IN  SOA   thinkpad postmaster (
                        200601042 ; serial
                        3H        ; refresh
                        1H        ; retry
                        1W        ; expire
                        1H )      ; minimum
; name server (NS) 
;         IN NS
; hostnames, in alphabetical order
thinkpad                IN A
;           IN A           IN A
This zone file is for the subdomain. There must be a delegation in the domain.The zone file has two entries, a NS entry to define the name server and an address record to define the host.
mydns     NS
mydns     A

Loopback configuration
The next two files can be used as-is and define the local host or loopback address.
Domain: localhost
File name: localhost.dns
; loopback/localhost zone file
$ORIGIN localhost.
@          IN SOA @ root (
              1 ; Serial
             8H ; Refresh
            15M ; Retry
             1W ; Expire
            1D) ; Minimum TTL
           IN NS @
           IN A
File name: 127.0.0.dns
; reverse pointers for localhost
@           IN SOA localhost. root.localhost. (
               1 ; serial
              8H ; refresh
             15M ; retry
              1W ; expire
            1D ) ; minimum
            IN NS  localhost.
          1 IN PTR localhost.

A very short zonefile introduction
When adding entries in a zone file, many of the positional paramters are optional. The full Address entry with all parameters looks like this:
hostname ttl IN A
hostname [optional]Usually the hostname. If the name doesn't end with a dot, the default domain is appended. The default domain comes from previous definitions. In our examples, we use the $ORIGIN to set the domain.
ttl [optional]Time to live
IN [optional]Class, IN stands for Internet
AAddress address

When adding a Whitelist entry, we have two basic options. Both of the following Address records are identical.


When you add the complete host name, terminte the name with a dot. If the dot is missing, the default domain is appended.

Timestamp: 10/18/2021 12:49:50 AM EDT [on srv7cps]
1996 - 2021 STDI Consulting Inc.
All Rights Reserved