Sample DNS Name Server ConfigurationThis document contains a sample name server configuration. The examples given will be for a VMS system running MultiNet; differences under Unix are noted where appropriate. The example demonstrates how a subdomain of Arizona.EDU can configure and run its own name server. In the example, you have subdomain called Philosophy.Arizona.EDU . There is also a subnet, 128.196.23.0, and three hosts in the subdomain: the department's hub machine, Socrates.Philosophy.Arizona.EDU, and two workstations, Wittgenstein.Philosophy.Arizona.EDU (also known as Ludwig...) and Hegel.Philosophy.Arizona.EDU. Socrates will act as the name server for the subdomain, as well as the mail exchanger for the workstations. For the sake of elegance, you want Socrates also to be known as just Philosophy.Arizona.EDU. On Socrates, edit the BIND config file
Options {
The file PHILOSOPHY.HOSTS looks like this:
; Authoritative data for the Philosophy.Arizona.EDU zone
@ IN SOA Socrates.Philosophy.Arizona.EDU. System.Philosophy.Arizona.EDU. (
1 ; serial
43200 ; refresh - 12 hrs
21600 ; retry - 6 hours
604800 ; expire - 1 week
86400 ) ; minimum - 1 day
IN NS Socrates.Philosophy.Arizona.EDU.
IN NS Arizona.EDU. ; assume Arizona.EDU is secondary for us
;
IN A 128.196.23.5 ; Socrates' IP address
IN MX 10 Philosophy.Arizona.EDU.
IN HINFO "VAX 9000/430" "VMS+MultiNet"
;
IN TXT "site manager: Joe Beets <beets@philosophy.arizona.edu>"
IN TXT " Phone: 1 602 621 6700 / Fax : 621 5555"
;
Socrates IN A 128.196.23.5
IN MX 10 Philosophy.Arizona.EDU.
IN HINFO "VAX 9000/430" "VMS+MultiNet"
;
Wittgenstein IN A 128.196.23.6
; Wittgenstein can handle its own mail, so give it an MX record in
Note that the suffix .Philosophy.Arizona.EDU is assumed for all host names
in this file, unless the name has a trailing dot (.). You can change the default
suffix with the $ORIGIN directive.
The at sign (@) signifies "this domain," that is, "Philosophy.Arizona.EDU". Note also that you can have multiple resource records per hostname without repeating the hostname on each line. The reverse domain file Philosophy-Net.Reverse has SOA (Start of Authority) and NS (Name Service) records identical to those in the forward file. From there it looks like this: 5 IN PTR Socrates.Philosophy.Arizona.EDU.And that does it! Now restart the name server, and Socrates becomes the authoritative name server for Philosophy.Arizona.EDU and for 23.196.128.IN-ADDR.ARPA. Note: In practice, you would need to coordinate with the name server (in this example, Arizona.EDU) to ensure delegation of authority and secondary name service backup is handled correctly. Click to read how delegation is handled on the rootward side. |
