PPP - Pedantic PPP Primer : Exercises for the Interested Student : Creating a mini-DNS system : The /etc/namedb/mydomain.db file
Previous: The /etc/namedb/named.boot file
Next: Starting the DNS Server

7.1.2. The /etc/namedb/mydomain.db file

The /etc/namedb/mydomain.db file lists the names and IP addresses of every system in the Local Area Network.

For a detailed description of the statements used in this file, refer to the named manpage.

The /etc/namedb/mydomain.db file for our minimal DNS server has the following contents: <hr>

@	IN SOA	my.domain. root.my.domain.  (
				961230	; Serial
				3600	; Refresh
				300	; Retry
				3600000	; Expire
				3600 )	; Minimum
	IN NS	curly.my.domain.

curly.my.domain.	IN A	192.168.1.1	# The FreeBSD box
larry.my.domain.	IN A	192.168.1.2	# The Win'95 box
moe.my.domain.		IN A	192.168.1.3	# The WfW box
shemp.my.domain.	IN A	192.168.1.4	# The Windows NT box

$ORIGIN 1.168.192.IN-ADDR.ARPA
		IN NS	curly.my.domain.
1		IN PTR	curly.my.domain.
2		IN PTR	larry.my.domain.
3		IN PTR	moe.my.domain.
4		IN PTR	shemp.my.domain.

$ORIGIN 0.0.127.IN-ADDR.ARPA
		IN NS	curly.my.domain.
1		IN PTR	localhost.my.domain.
<hr>

In simple terms, this file declares that the local DNS server is:

To add workstation entries to this file you'll need to add two lines for each system; one in the top section where the name(s) are mapped into Internet Addresses ("IN A"), and another line that maps the addresses back into names in the $ORIGIN 1.168.192.IN-ADDR.ARPA section.


PPP - Pedantic PPP Primer : Exercises for the Interested Student : Creating a mini-DNS system : The /etc/namedb/mydomain.db file
Previous: The /etc/namedb/named.boot file
Next: Starting the DNS Server