DNS Configuration and Management Manual (G06.25+, H06.03+)

Configuring and Managing DNS 9.2.3
HP DNS Configuration and Management Manual529432-001
3-4
Using IXFR
The new environment variable TCPIP_RESOLVER_NAME must be used for pointing
to the resolv.conf file; this variable can be set either through the OSS shell prompt or
through a call to the putenv() procedure in the OSS application.
The following pieces of code are examples of resolving the destination host by
querying the Name Server pointed at by the /etc/dns/resolv.conf file.
Using IXFR
By default, the support for IXFR for Slave Name Servers is active, and can be disabled
at configuration time by specifying statements in the zone data file.
The basic syntax of such statements in the configuration file is:
For example:
Server 10.53.0.1 {
provide-ixfr no;
};
The provide-ixfr clause determines whether the local server (acting as Master)
responds with an incremental zone transfer when the given remote server (a Slave)
requests it. If set to yes (case sensitive), incremental zone transfer is provided
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
Server ip-address {
provide-ixfr no[yes];
};