$INCLUDE named.soahost [ttl] class A address
[host [ttl] class A address] [alias [ttl] class CNAME host] [host [ttl] class HINFO hardware OS] [host [ttl] class WKS address protocol services] [name [ttl] class PTR host] [host [ttl] class TXT string] [host [ttl] class MX preference mail_exchanger] [owner [ttl] class RP mail_exchanger txt_host]
[host [ttl] class AFSDB subtype mail_exchanger] [$ORIGIN domain] [$INCLUDE filename]
This is created manually on the primary server.
;{name} {ttl} class NS nameserver IN NS namesrvr.company.comIn this example, namesrvr.company.com is the name of a name server in the current zone. Each name server must have an NS record.
NOTE:
These two records, SOA and NS,
comprise the file named.soa. Instead of
listing these two records, you can substitute the
directive $INCLUDE named.soa.
;{name} {ttl} class A address host1 IN A 128.32.0.4In this example, host1 is the host name, and 128.32.0.4 is its IP address. There should be one A record for each address of each machine.
$ORIGIN company.comThis example appends company.com to every address in the file until another $ORIGIN.
;name {ttl} class AFSDB subtype mail_exchanger host.name IN AFSDB 1 namesrvr2.company.com.This is an experimental record. Subtype 1 indicates that the named host is an AFS (R) database server for the AFS cell of the given domain name. Subtype 2 indicates that the named host provides intra-cell name service for the DCE (R) cell named by the given domain name.
;alias {ttl} class CNAME canonical_name nickname IN CNAME host1In this example, nickname is an alias for host1.
;{name} {ttl} class HINFO hardware OS host1 IN HINFO VAX-11/780 UNIXIn this example, host1 is a VAX-11/780 running UNIX.
;{name} {ttl} class MX preference mail_exchanger host.name IN MX 0 namesrvr2.company.com.In this example, nameserver2.company.com is a mail gateway that knows how to deliver mail to host.name. Every host which receives mail should have an MX record. The preference is the order that a mailer should follow when there is more than one way to deliver mail to a host (lower numbers have higher precedence).
;{name} {ttl} class PTR hostname 7.0 IN PTR host1.company.com.In this example, 7.0 is the pointer to host1.company.com., and is the unique octets of its IP address in reverse order. The trailing dot on host1.company.com. prevents DNS from appending the current $ORIGIN. This is generally used in named.rev and is required by gethostbyaddr(SLIB).
;owner {ttl} class RP mail_exchanger txt_host ownername IN RP host1.company.com host1.company.comIn this example, ownername is the name or group name of the responsible person. mail_exchanger is the owner's mailbox (specified in MX). txt_host is the address of relevant TXT records.
;name {ttl} class TXT string host.name IN TXT "text"
;{name} {ttl} class WKS address protocol services IN WKS 128.32.0.10 UDP (echo tftp domain)In this example, echo, tftp, and domain are the well-known services for UDP on the machine with address 128.32.0.10.