[an error occurred while processing this directive]
HP OpenVMS Systems Documentation |
>
Compaq TCP/IP Services for OpenVMS
|
Previous | Contents |
$ NSUPDATE > update delete oldhost.example.com A > update add newhost.example.com 86400 A 172.16.1.1 > |
$ NSUPDATE > prereq nxdomain nickname.example.com > update add nickname.example.com CNAME somehost.example.com > |
In the same OpenVMS Cluster, multiple BIND master servers can share a common database, thereby providing redundancy and a failover mechanism when one of the servers becomes unavailable.
To configure a DNS cluster failover and redundancy environment, perform the following steps on each node participating in the cluster.
options { directory "TCPIP$BIND_COMMON"; }; |
Be careful to remove from SYS$SPECIFIC:[BIND] any databases that are to be shared. Using the search list logical, BIND will find any SYS$SPECIFIC:[BIND] databases first and use those. This might not be the result you want. |
$ @SYS$MANAGER:TCPIP$BIND_STARTUP.COM |
The use of dynamic updates in conjunction with a master BIND server that is participating in cluster failover and redundancy is not supported and might cause serious problems. |
If multiple master BIND servers are running in a cluster, and a change is made to the common BIND database, the database must be reloaded on each node that is running the master BIND server. To reload the BIND database on every node in the cluster where the master BIND server is running, enter the following command:
TCPIP> SET NAME_SERVICE /INITIALIZE /CLUSTER=dev:[directory] |
The /CLUSTER qualifier takes the directory specification of the common BIND directory as a value. If you omit the device and directory, they default to:
common_device:[TCPIP$BIND_COMMON] |
In this case, common_device is generated automatically in the following manner:
To populate the BIND server database files, use one of the following methods:
To populate the BIND server database by copying information from the hosts database and other database files, enter the CONVERT/UNIX BIND command. This command:
If the BIND server's directory is SYS$SPECIFIC:[TCPIP$BIND] and you have specified domain abc.def.com , the default output file is named SYS$SPECIFIC:[TCPIP$BIND]ABC_DEF_COM.DB.
Compaq suggests that you do not change the default directory name. If you do, the file is created in your current directory.
On the command line, specify the full OpenVMS file specification. Do not specify a version number, and do not use wildcards. The following example uses the domain ucx.ern.sea.com , creates a UCX_ERN_SEA_COM.DB file, creates a 208_20_9_IN-ADDR_ARPA.DB file, and checks the results by displaying directory listings with the new file.
TCPIP> CONVERT/UNIX BIND /DOMAIN=UCX.ERN.SEA.COM TCPIP> CONVERT/UNIX BIND /DOMAIN=208.20.9.IN-ADDR.ARPA TCPIP> SET DEFAULT SYS$SPECIFIC:[TCPIP$BIND] $ DIRECTORY Directory SYS$SPECIFIC:[TCPIP$BIND] 127_0_0.DB;1 208_20_9_IN-ADDR_ARPA.DB;1 LOCALHOST.DB;1 LOGIN.COM;1 ROOT.HINT;1 TCPIP$BIND.CONF;1 TCPIP$BIND_CONF.TEMPLATE;1 TCPIP$BIND_RUN.LOG;4339 TCPIP$BIND_SERVER.PID;1 UCX_ERN_SEA_COM.DB;5 |
All name server zone files use the same type of records to define domain database information. Compaq recommends that you review these resource records before you edit any BIND files. Table C-21 describes the standard resource records (RR).
Record Type | Description |
---|---|
SOA | Start of authority. Marks the beginning of a zone's data and defines parameters that affect the entire zone. |
NS | Name server. Identifies a domain's name server. |
A | Address. Maps a host name to an address. |
PTR | Pointer. Maps an address to a host name. |
MX | Mail Exchange. Identifies where to deliver mail for a given domain. |
CNAME | Canonical name. Defines an alias host name. |
HINFO | Host information. Describes a host's hardware and operating system. |
WKS | Well-known service. Advertises network services. |
The format of DNS records is as follows:
[name] [ttl] IN type data |
In this format:
name | Specifies the name of the domain object referenced by a resource record. The string entered for name is the current domain unless it ends with a dot. If the name field is blank, the record applies to the domain object last named. |
ttl | Defines the length of time, in seconds, that the information in this resource record should be kept in cache. Usually, the time-to-live field is left blank, and the default ttl, set for the entire zone SOA record, is used. |
IN | Identifies the record as an Internet DNS resource record. |
type | Identifies what kind of resource record this is. (See Table C-21 for the record types you can specify.) |
data | Information specific to this type of resource record. For example, in an A record, this is the field that contains the actual IP address. |
The time to live (TTL) of the RR field is a 32-bit integer that represents the number of seconds that an RR can be cached before it should be discarded. The following types of TTL values are used in a zone file:
All of these TTLs default to units of seconds, though units can be
explicitly specified (for example,
1h30m
for 1 hour and 30 minutes).
C.6.2.2 Zone File Directives
While the master file format itself is class independent, all records in a master file must be of the same class. The master file directives are described in the following list:
$ORIGIN example.com WWW CNAME MAIN-SERVER |
WWW.EXAMPLE.COM. CNAME MAIN-SERVER.EXAMPLE.COM. |