xref: /titanic_51/usr/src/man/man3lib/libresolv.3lib (revision 89b43686db1fe9681d80a7cf5662730cb9378cae)
te
Copyright (C) 2004, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
libresolv 3LIB "24 Mar 2004" "SunOS 5.11" "Interface Libraries"
NAME
libresolv - resolver library
SYNOPSIS

cc [ flag... ] file... -lresolv  -lsocket   -lnsl  [ library... ]
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <resolv.h>
#include <netdb.h>
DESCRIPTION

Functions in this library provide for creating, sending, and interpreting packets to the Internet domain name servers.

INTERFACES

The shared object libresolv.so.2 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.

__dn_skipname__fp_query
__hostalias__p_cdname
__p_class__p_query
__p_time__p_type
__putlong_getlong
_getshort_res
dn_compdn_expand
fp_resstath_errno
herrorhstrerror
res_hostaliasres_init
res_mkqueryres_nclose
res_ninitres_nmkquery
res_nqueryres_nquerydomain
res_nsearchres_nsend
res_nsendsignedres_query
res_querydomainres_search
res_sendres_update

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.

FUNCTION REFERENCED ALIAS TO USE
__dn_skipnamedn_skipname
__fp_queryfp_query
__putlongputlong
__p_cdnamep_cdname
__p_classp_class
__p_timep_time
__p_typep_type
FILES

/lib/libresolv.so.1

shared object for backward compatibility only

/lib/64/libresolv.so.1

64-bit shared object for backward compatibility only

/lib/libresolv.so.2

shared object

/lib/64/libresolv.so.2

64-bit shared object

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard: BIND 8.2.4
MT-LevelSee resolver(3RESOLV)
SEE ALSO

pvs(1), Intro(3), resolver(3RESOLV), attributes(5)