#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
int res_findzonecut(state* res,
const char *domain_name,
ns_class class,
int options,
char *zone_name,
size_t zone_size,
struct in_addr *addresses,
int num_addresses)
The res_findzonecut() queries name servers until it finds the enclosing zone and its master name servers for the specified domain name.
No authorization is required.
res_findzonecut() returns an integer. Possible values are:
When the res_findzonecut() function fails, res_findzonecut() can set errno to one of the following:
Either the input packet could not be translated to ASCII or the answer received could not be translated to the coded character set identifier (CCSID) currently in effect for the job.
No zone could be found for the domain.
The system detected a pointer that was invalid while attempting to access an input pointer.
One of the following reasons:
Note: No attempt is made to initialize the res structure if it was initialized previous to the res_findzonecut() being issued.
An invalid message length was returned on an answer.
The answer to a query had the wrong domain name.
Note: There are numerous other values that errno can be set to by the resolver and sockets functions that res_findzonecut() calls. Refer to other functions for the other values.
| Top | UNIX-Type APIs | APIs by category |