HP-UX IP Address and Client Management Administrator's Guide (October 2009)
* want to talk to, you might need to uncomment the
* query-source directive below. Previous versions of BIND
* always asked questions using port 53, but BIND 8.1 uses
* an unprivileged port by default.
*/
// query-source address * port 53;
};
//
// type domain source file
//
zone “0.0.127.IN.ADDR.ARPA” {
type master;
file “db.127.0.0”;
};
zone “.” {
type hint;
file “db.cache”;
};
4. If you use an /etc/resolv.conf file on your host, configure the default domain name
with the search or domain keyword. See “Configuring the Resolver to Query a Remote
Name Server” (page 81).
If you do not use an /etc/resolv.conf file to configure the default domain name, follow
these steps:
a. Set the default domain name with the hostname command by appending the domain
name to the host name. For example, type the following at the HP-UX prompt to set
the default host name to indigo.div.inc.com:
/usr/bin/hostname indigo.div.inc.com
/usr/bin/hostname indigo.div.inc.com
b. Set the HOSTNAME variable in the /etc/rc.config.d/netconf file to the same value,
as in the following example:
HOSTNAME=indigo.div.inc.com
Do not put a trailing dot at the end of the domain name.
Your default domain is now set.
Configuring the Resolver to Query a Remote Name Server
A name server constitutes the server portion of BIND’s client/server mechanism. Resolvers are
clients that access the name server. Name servers contain complete information about a particular
network segment. Resolvers are library routines that create queries and send them across a
network to a name server. A resolver translates a program’s request for host information into a
query, sends the query to a name server, and translates the response into an answer. Programs
running on a host use a resolver to obtain information about a domain.
A resolver can perform the following functions:
• Query a name server.
• Interpret a response.
• Return the information to the program.
A resolver allows you to configure three aspects of its behavior: the default domain, the search
list, and the name servers that the resolver queries.
You can include most of the resolver configurations in the /etc/resolv.conf file. Table 2-2
describes the options in the /etc/resolv.conf file that you can use to configure the resolver’s
behavior.
Configuring the Resolver to Query a Remote Name Server 81