Make your own free website on Tripod.com

BACK

named.solarr.com and named.192.168.1

This page contains the master zone file for the fictional domain solarr.com and its reverse address lookup file. 


In the named.solarr.com file after the header part of the file the computer hostnames are on the left side of the file (mars, earth, mercury and ftp.earth are all computer names, the name must either contain the domain name in the host name or it must have no no trailing period after the computer name, -the domain name will be appended to the domain if the period is left off.) Next is the IN which specifies that the address is and Internet address.  The A is for Address, MX is for mail server, and CNAME is a common name for a computer that already has a listed name.  The last item going across is the computers IP address -in the case of an MX or CNAME entry you may use the hostname instead of the IP address as the server will lookup the name.


// named.solarr.com file

@           IN SOA mars.solarr.com. root.mars.solarr.com.    (
                                        20;
                                        3H;
                                        15M;
                                        1W;
                                        1W);
                                  IN NS     mars.solarr.com.
                                  IN A       192.168.1.38

mars                          IN A       192.168.1.38
                                  IN MX   100      mars.solarr.com.
earth                         IN A       192.168.1.67
mercury                    IN A       192.168.1.35
                                  IN MX   100      earth.solarr.com.
www.solarr.com.       IN A       192.168.1.36
ftp.mars                    IN A       192.168.1.38
ftp.earth                   IN CNAME      earth.solarr.com.
www.mars                 IN A       192.168.1.38
www.mercury           IN A       192.168.1.35
earth2                       IN A       192.168.1.68
mars2                       IN A        l92.168.1.66
localhost                   IN A       127.0.0.1


The named.192.168.1 file holds the information the server needs to reverse the IP address to get the hostname.  In this file after the header part the fourth octet of the IP address is put on the left and the IN is followed by a PTR (domain name pointer).  The last item for each record is the full hostname with the domain added on to it -note the trailing period, it is necessary so the server doesn't try to append the domain name onto the end of it.


// Reverse IP address to hostname lookup file for solarr.com domain

$ORIGIN 1.168.192.in-addr.arpa

@                 IN SOA  mars.solarr.com root.mars.solarr.com (
                        45;
                        3H;
                        15M;
                        1W;
                        1D);

@                 IN NS        mars.solarr.com.
38                IN PTR      mars.solarr.com.
67                IN PTR      earth.solarr.com.
35                IN PTR      mercury.solarr.com.
66                IN PTR      mars2.solarr.com.
68                IN PTR      earth2.solarr.com.
 


BACK