Standards / Extensions | C or C++ | Dependencies |
---|---|---|
BSD 4.3 |
both | OS/390 V2R8 |
#define _XOPEN_SOURCE_EXTENDED 1
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
int res_querydomain(const char *name, const char *domain, int class, int type,
u_char *answer, int anslen);
This routine is one of several functions used for making, sending and interpreting query and reply messages with Internet domain name servers (DNS).
The res_querydomain() function builds a fully qualified domain name and returns a res_query() to the caller.
If successful, res_querydomain() returns a res_query() to the caller.