libresolv - resolver library
cc [ flag... ] file... –lresolv [ library... ] #include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> #include <netdb.h>
Functions in this library provide for creating, sending, and interpreting packets to the Internet domain name servers.
This library is maintained to provide backward compatibility for both runtime and compilation environments. The shared object is implemented as a filter on libc.so.1. New application development does not need to specify –lnsl or –lsocket.
The shared object libresolv.so.2 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.
Programs are expected to use the aliases defined in <resolv.h> rather than calling the "__" prefixed procedures, as indicated in the following table. Use of the routines in the first column is discouraged.
64–bit shared object
See attributes(7) for descriptions of the following attributes: