ares_parse_ptr_reply(3) - Linux man page
Name
ares_parse_ptr_reply - Parse a reply to a DNS query of type PTR into a hostentSynopsis
#include <ares.h>int ares_parse_ptr_reply(const unsigned char *abuf, int alen,const void *addr, int addrlen, int family,struct hostent **host);
Description
Return Values
ares_parse_ptr_reply can return any of the following values:- ARES_SUCCESS
- The response was successfully parsed.
- ARES_EBADRESP
- The response was malformatted.
- ARES_ENODATA
- The response did not contain an answer to the query.
- ARES_ENOMEM
- Memory was exhausted.
See Also
ares_gethostbyaddr(3), ares_free_hostent(3)Author
Greg Hudson, MIT Information SystemsCopyright 1998 by the Massachusetts Institute of Technology.