DNS Configuration and Management Manual (G06.27+, H06.05+, J06.03+)
DNS Configuration on the NonStop Server
HP DNS Configuration and Management Manual—529432-003
3-24
Specifying Multiple Names in the Resolver by Using
Sections
Specifying Multiple Names in the Resolver by
Using Sections
The resolver configuration file is used by the resolver library to get the default local
domain name and the IP addresses of name servers to contact. The resolver
configuration file is named resolv.conf in OSS and RESCONF in Guardian, but the
syntax and usage is the same for both the environments.
In addition to the existing domain and name server directives, the following new
directives have been provided to be used in the resolver configuration file:
Name Server
Specifies the internet address of a Name Server in dot-notation format.
In addition to the ability to specify IPv4 addresses, you can now provide IPv6
addresses with the
Name Server directive.
search
Provides a search list for host name lookup
The default behavior provided by the
domain directive can be changed by listing
the desired domain search path following the
search keyword, with spaces or
tabs separating the names. Most resolver queries are attempted using each
component of the search path in turn until a match is found. The search list is
limited to six domains.
Example 3-4. Specifying a Different resolv.conf File Through an Application
putenv ("TCPIP_RESOLVER_NAME=/etc/dns/resolv.conf");
h = gethostbyname(argv[1]);
if(h==NULL) {
printf("%s: unknown host '%s'\n",argv[0],argv[1]);
exit(1);
}
Example 3-5. Specifying a Different resolv.conf File Through the OSS Shell
/etc/dns923> export
TCPIP_RESOLVER_NAME=’/etc/dns/resolv.conf’
/etc/dns923> set










