HP-UX IP Address and Client Management Administrator's Guide HP-UX 11i v2, HP-UX 11i v3
export HOSTALIASES=/home/andrea/myaliases
• If the input host name does not end with a dot, BIND looks it up with domain names
appended to the host name. You can configure the domain names that BIND appends to
the host name using the following methods:
— The LOCALDOMAIN environment variable.
— The hostname command.
— The search option in the /etc/resolv.conf file.
— The domain option in the /etc/resolv.conf file.
If you set the LOCALDOMAIN variable as in the following example,
export LOCALDOMAIN="nmt.edu
div.inc.com inc.com"
the LOCALDOMAIN variable overrides the hostname and any search or domain option in
the /etc/resolv.conf file, for BIND requests within the context of your shell environment.
The input host name is looked up in each of the domains in the variable, in the order they
are listed.
If you set the local hostname to a fully qualified domain name, and you do not specify the
search and domain options in the /etc/resolv.conf file, the input host name is looked
up in the domain configured in the fully qualified hostname.
The search option specifies a list of domains to search. Following is an example of a search
option in the /etc/resolv.conf file:
search div.inc.com
inc.com
You can set the search option to any list of domains, but the first domain in the list must
be the domain of the local host. BIND looks up the host names in each domain, in the order
they are listed in the search option. BIND uses the search option only when you do not
set the LOCALDOMAIN variable.
The domain option specifies the local domain. If you use the domain option, BIND searches
only the specified domain to resolve the host names. BIND uses the domain option for host
name lookups only if you do not set the LOCALDOMAIN variable and if you do not specify
the search option.
If you use both the domain and search options in the /etc/resolv.conf file, only the
option that appears last is used and the previous option is ignored. Therefore, do not use
both the options domain and search in the /etc/resolv.conf file.
For more information on how BIND resolves host names, type man 5 hostname or man 4
resolver at the HP-UX prompt.
Lightweight Resolver Library and Daemon
BIND provides resolution services to local clients by using a combination of a lightweight resolver
library and a resolver daemon process running on the local host. These resolution services
communicate using a simple UDP-based protocol called the lightweight resolver protocol, which
is different from and simpler than the full DNS protocol.
The applications that require address-to-name lookups are linked with a stub resolver library
that sends recursive DNS queries to a local caching name server.
To use the lightweight resolver interface, the system must run the resolver daemon lwresd.
For more information, type man 1m lwresd at the command prompt.
The rndc Utility
The remote name daemon control (rndc) utility enables you to control the operation of a name
server.
BIND Name Service Overview 21