res_nquerydomain()--Send 2-String Domain Query


  Syntax
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <arpa/nameser.h>
 #include <resolv.h>

 void res_nquerydomain(state* res,
                       const char *string1,
                       const char *string2,
                       int  class,
                       int  type,
                       unsigned char *answer_buffer,  
                       int  answer_buffer_length)


  Service Program Name: QSOSRV2

  Default Public Authority: *USE

  Threadsafe: Yes

The res_nquerydomain() concatenates string1 + string2 into a new domain_name parameter and calls res_nquery(). For more information on domain_name, the remaining parameters, authorities required, return values, and related information, see res_nquery()--Send Domain Query.


Parameters

string1
(Input) The pointer to the first string. In practice this is generally a host name.

string2
(Input) The pointer to the first string. In practice this is generally a zone name.

Related Information


Example

See res_ninit() for an example of how hstrerror() is used.


API introduced: V5R1

[ Back to top | UNIX-Type APIs | APIs by category ]