admsvcorder(1M) DG/UX 5.4R3.00 admsvcorder(1M)
NAME
admsvcorder - manage search order for /etc/hosts, NIS, and DNS
databases
SYNOPSIS
admsvcorder -o set -1 first-database [ -2 second-database [ -3 third-
database ] ]
admsvcorder -o get [ -qv ]
DESCRIPTION
Admsvcorder manages the order that the /etc/hosts, Network
Information Service, and Domain Name System resolver databases are
searched for hostname-to-address resolution.
Operations
set Set the order that the databases are searched.
get Get the order that the databases are searched.
Options
-1 first-database
first-database is the database that will be searched first
in hostname-to-address resolution.
-2 second-database
second-database is the database that will be searched
second in hostname-to-address resolution. If unspecified
then only the first database will be searched.
-3 third-database
third-database is the database that will be searched third
in hostname-to-address resolution. If unspecified then
only the first and second databases will be searched.
-q "Quiet." Produce an unformatted listing (i.e. no headers,
fields delimited by a single space).
-v "Verbose." Produce a formatted listing with headers and
aligned columns. This is the default.
admsvcorder expects the databases to be specified with the following
convention:
NIS or nis for the Network Information Service (formerly Yellow
Pages) database.
EHOSTS or ehosts for the local /etc/hosts database.
RES or res for the Domain Name System resolver.
FILES
/etc/svcorder Search order file.
Licensed material--property of copyright holder(s) 1
admsvcorder(1M) DG/UX 5.4R3.00 admsvcorder(1M)
OUTPUT
The get operation writes its output to stdout.
The verbose form of the operation outputs information in aligned
columns with column headers.
The quiet form of the operation suppresses headers and each database
is printed in the order that it is searched on separate lines.
DIAGNOSTICS
Warnings
None.
Errors
- The set operation is requested, and the -1 option is not
specified.
- The set operation is requested, and the -3 option is specified,
but the -2 option is not specified.
Exit Codes
0 The operation was successful.
1 The operation was unsuccessful.
2 The operation failed due to access restrictions.
3 There was an error in the command line. does not exist.
SEE ALSO
resolver(3C), yp(3R), hosts(4), svcorder(4).
NOTES
Access to the set operation is granted based upon the write access to
/etc/svcorder. Generally, only the system administrator has this
access. Access to the get operation is granted based upon the read
access to /etc/svcorder. Generally, all have this access.
Licensed material--property of copyright holder(s) 2