Distributed Name Service (DNS) Management Operations Manual

Introduction to Defining DNS Names
Building and Modifying the DNS Database
31258 Tandem Computers Incorporated 4–7
The example below displays how to add an alias type in one command line. Its result
is the same as the example used in the previous subsection. The ampersand (&) is part
of your input when you carry a long command line to the next line on a screen. Using
the ampersand is described more in Section 6 under “Entering a Command on More
Than One Line.”
ADD ALIASTYPE PHONE-NUMBER, OWNER Joyco, TYPENUM 1, SSTYPES &
LOCATION, DOMAIN NETWORK
Using the LIKE Phrase to
Copy Existing Definitions
DNSCOM provides a feature to copy existing attributes and definitions when using
the SET or ADD command. This is done by including the LIKE phrase in your SET or
ADD command line. This saves time when creating name definitions similar to ones
already in a DNS database.
To use the LIKE phrase, specify a name of the same kind being added or set. This
indicates to DNSCOM to use the definition of the specified name in adding the new
name or in setting creation values for a name to be subsequently added.
With the LIKE phrase, you can specify definitions defined to the DNSCOM current
name manager or specify either a system name or the name of another running name
manager. If you specify a name other than the current name manager, you must also
include the AT phrase:
LIKE
name
[ AT {
system name
|
name manager
} ]
If the AT phrase is omitted, the current name manager is assumed.
In the following example, the definition of PHONE-NUMBER in the DNS database
managed by \NY.$DNS4 is copied into the DNSCOM current DNS database:
ADD ALIASTYPE PHONE-NUMBER LIKE PHONE-NUMBER AT \NY.$DNS4
Also, you can override particular attributes specified in the LIKE phrase by specifying
a different attribute value. There are two ways to override attributes copied with the
LIKE phrase:
Specify the attribute value in the same parameter list as the LIKE phrase (in the
same command line)
Issue a subsequent SET, ADD, or ALTER command
The following example uses the definition of a previously defined alias type name by
using the LIKE phrase in the parameter list and overrides one attribute value:
ADD ALIASTYPE TELEX-NUMBER LIKE PHONE-NUMBER, TYPENUM 2
The next example uses the LIKE phrase in the parameter list of a SET command to
build a definition from a previously defined name. The ADD command adds the
definition but overrides an attribute as the name definition is added to the database.
SET ALIASTYPE LIKE PHONE-NUMBER
ADD TELEX-NUMBER, TYPENUM 2