DESCRIPTION
This family of functions allows you to perform lookups of Hesiod information, which is stored as text records in the Domain Name Service. To perform lookups, you must first initialize a context, an opaque object which stores information used internally by the library between calls. The hesiod_init function initializes a context, storing a pointer to the context in the location pointed to by the context argument. The hesiod_end function frees the resources used by a context. The hesiod_resolve function is the primary interface to the library. If successful, it returns a list of one or more strings giving the records matching name and type. The last element of the list is followed by a NULL pointer. It is the callers responsibility to call hesiod_free_list to free the resources used by the returned list.
The hesiod_to_bind function converts name and type into the DNS name used by hesiod_resolve. It is the callers responsibility to free the returned string using free.
RETURN VALUES
.Rv -std hesiod_init On failure, hesiod_resolve and hesiod_to_bind return NULL and set the global variable errno to indicate the error.
ENVIRONMENT