Blame lib/lwres/man/lwres_gethostent.docbook

Packit Service ae04f2
Packit Service ae04f2
]>
Packit Service ae04f2
Packit Service ae04f2
 - Copyright (C) Internet Systems Consortium, Inc. ("ISC")
Packit Service ae04f2
 -
Packit Service ae04f2
 - This Source Code Form is subject to the terms of the Mozilla Public
Packit Service ae04f2
 - License, v. 2.0. If a copy of the MPL was not distributed with this
Packit Service ae04f2
 - file, You can obtain one at http://mozilla.org/MPL/2.0/.
Packit Service ae04f2
 -
Packit Service ae04f2
 - See the COPYRIGHT file distributed with this work for additional
Packit Service ae04f2
 - information regarding copyright ownership.
Packit Service ae04f2
-->
Packit Service ae04f2
Packit Service ae04f2
Packit Service ae04f2
<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0">
Packit Service ae04f2
  <info>
Packit Service ae04f2
    <date>2007-06-18</date>
Packit Service ae04f2
  </info>
Packit Service ae04f2
  <refentryinfo>
Packit Service ae04f2
    <corpname>ISC</corpname>
Packit Service ae04f2
    <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
Packit Service ae04f2
  </refentryinfo>
Packit Service ae04f2
Packit Service ae04f2
  <refmeta>
Packit Service ae04f2
    <refentrytitle>lwres_gethostent</refentrytitle>
Packit Service ae04f2
    <manvolnum>3</manvolnum>
Packit Service ae04f2
    <refmiscinfo>BIND9</refmiscinfo>
Packit Service ae04f2
  </refmeta>
Packit Service ae04f2
Packit Service ae04f2
  <docinfo>
Packit Service ae04f2
    <copyright>
Packit Service ae04f2
      <year>2001</year>
Packit Service ae04f2
      <year>2004</year>
Packit Service ae04f2
      <year>2005</year>
Packit Service ae04f2
      <year>2007</year>
Packit Service ae04f2
      <year>2014</year>
Packit Service ae04f2
      <year>2015</year>
Packit Service ae04f2
      <year>2016</year>
Packit Service ae04f2
      <year>2018</year>
Packit Service ae04f2
      <year>2019</year>
Packit Service ae04f2
      <year>2020</year>
Packit Service ae04f2
      <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
Packit Service ae04f2
    </copyright>
Packit Service ae04f2
  </docinfo>
Packit Service ae04f2
Packit Service ae04f2
  <refnamediv>
Packit Service ae04f2
    <refname>lwres_gethostbyname</refname>
Packit Service ae04f2
    <refname>lwres_gethostbyname2</refname>
Packit Service ae04f2
    <refname>lwres_gethostbyaddr</refname>
Packit Service ae04f2
    <refname>lwres_gethostent</refname>
Packit Service ae04f2
    <refname>lwres_sethostent</refname>
Packit Service ae04f2
    <refname>lwres_endhostent</refname>
Packit Service ae04f2
    <refname>lwres_gethostbyname_r</refname>
Packit Service ae04f2
    <refname>lwres_gethostbyaddr_r</refname>
Packit Service ae04f2
    <refname>lwres_gethostent_r</refname>
Packit Service ae04f2
    <refname>lwres_sethostent_r</refname>
Packit Service ae04f2
    <refname>lwres_endhostent_r</refname>
Packit Service ae04f2
    <refpurpose>lightweight resolver get network host entry</refpurpose>
Packit Service ae04f2
  </refnamediv>
Packit Service ae04f2
  <refsynopsisdiv>
Packit Service ae04f2
    <funcsynopsis>
Packit Service ae04f2
<funcsynopsisinfo>#include <lwres/netdb.h></funcsynopsisinfo>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
struct hostent *
Packit Service ae04f2
<function>lwres_gethostbyname</function></funcdef>
Packit Service ae04f2
        <paramdef>const char *<parameter>name</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
struct hostent *
Packit Service ae04f2
<function>lwres_gethostbyname2</function></funcdef>
Packit Service ae04f2
        <paramdef>const char *<parameter>name</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>af</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
struct hostent *
Packit Service ae04f2
<function>lwres_gethostbyaddr</function></funcdef>
Packit Service ae04f2
        <paramdef>const char *<parameter>addr</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>len</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>type</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
struct hostent *
Packit Service ae04f2
<function>lwres_gethostent</function></funcdef>
Packit Service ae04f2
        <paramdef>void</paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
void
Packit Service ae04f2
<function>lwres_sethostent</function></funcdef>
Packit Service ae04f2
        <paramdef>int <parameter>stayopen</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
void
Packit Service ae04f2
<function>lwres_endhostent</function></funcdef>
Packit Service ae04f2
        <paramdef>void</paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
struct hostent *
Packit Service ae04f2
<function>lwres_gethostbyname_r</function></funcdef>
Packit Service ae04f2
        <paramdef>const char *<parameter>name</parameter></paramdef>
Packit Service ae04f2
        <paramdef>struct hostent *<parameter>resbuf</parameter></paramdef>
Packit Service ae04f2
        <paramdef>char *<parameter>buf</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>buflen</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int *<parameter>error</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
struct hostent  *
Packit Service ae04f2
<function>lwres_gethostbyaddr_r</function></funcdef>
Packit Service ae04f2
        <paramdef>const char *<parameter>addr</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>len</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>type</parameter></paramdef>
Packit Service ae04f2
        <paramdef>struct hostent *<parameter>resbuf</parameter></paramdef>
Packit Service ae04f2
        <paramdef>char *<parameter>buf</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>buflen</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int *<parameter>error</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
struct hostent  *
Packit Service ae04f2
<function>lwres_gethostent_r</function></funcdef>
Packit Service ae04f2
        <paramdef>struct hostent *<parameter>resbuf</parameter></paramdef>
Packit Service ae04f2
        <paramdef>char *<parameter>buf</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int <parameter>buflen</parameter></paramdef>
Packit Service ae04f2
        <paramdef>int *<parameter>error</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
void
Packit Service ae04f2
<function>lwres_sethostent_r</function></funcdef>
Packit Service ae04f2
        <paramdef>int <parameter>stayopen</parameter></paramdef>
Packit Service ae04f2
        </funcprototype>
Packit Service ae04f2
<funcprototype>
Packit Service ae04f2
        <funcdef>
Packit Service ae04f2
void
Packit Service ae04f2
<function>lwres_endhostent_r</function></funcdef>
Packit Service ae04f2
        <paramdef>void</paramdef>
Packit Service ae04f2
      </funcprototype>
Packit Service ae04f2
</funcsynopsis>
Packit Service ae04f2
  </refsynopsisdiv>
Packit Service ae04f2
Packit Service ae04f2
  <refsection><info><title>DESCRIPTION</title></info>
Packit Service ae04f2
Packit Service ae04f2
    <para>
Packit Service ae04f2
      These functions provide hostname-to-address and
Packit Service ae04f2
      address-to-hostname lookups by means of the lightweight resolver.
Packit Service ae04f2
      They are similar to the standard
Packit Service ae04f2
      <citerefentry>
Packit Service ae04f2
        <refentrytitle>gethostent</refentrytitle><manvolnum>3</manvolnum>
Packit Service ae04f2
      </citerefentry>
Packit Service ae04f2
      functions provided by most operating systems.
Packit Service ae04f2
      They use a
Packit Service ae04f2
      <type>struct hostent</type>
Packit Service ae04f2
      which is usually defined in
Packit Service ae04f2
      <filename><namedb.h></filename>.
Packit Service ae04f2
    </para>
Packit Service ae04f2
    <para><programlisting>
Packit Service ae04f2
struct  hostent {
Packit Service ae04f2
        char    *h_name;        /* official name of host */
Packit Service ae04f2
        char    **h_aliases;    /* alias list */
Packit Service ae04f2
        int     h_addrtype;     /* host address type */
Packit Service ae04f2
        int     h_length;       /* length of address */
Packit Service ae04f2
        char    **h_addr_list;  /* list of addresses from name server */
Packit Service ae04f2
};
Packit Service ae04f2
#define h_addr  h_addr_list[0]  /* address, for backward compatibility */
Packit Service ae04f2
</programlisting>
Packit Service ae04f2
    </para>
Packit Service ae04f2
    <para>
Packit Service ae04f2
      The members of this structure are:
Packit Service ae04f2
      <variablelist>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>h_name</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              The official (canonical) name of the host.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>h_aliases</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              A NULL-terminated array of alternate names (nicknames) for the
Packit Service ae04f2
              host.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>h_addrtype</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              The type of address being returned —
Packit Service ae04f2
              <type>PF_INET</type>
Packit Service ae04f2
              or
Packit Service ae04f2
              <type>PF_INET6</type>.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>h_length</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              The length of the address in bytes.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>h_addr_list</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              A <type>NULL</type>
Packit Service ae04f2
              terminated array of network addresses for the host.
Packit Service ae04f2
              Host addresses are returned in network byte order.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
      </variablelist>
Packit Service ae04f2
    </para>
Packit Service ae04f2
    <para>
Packit Service ae04f2
      For backward compatibility with very old software,
Packit Service ae04f2
      <constant>h_addr</constant>
Packit Service ae04f2
      is the first address in
Packit Service ae04f2
      <constant>h_addr_list.</constant>
Packit Service ae04f2
    </para>
Packit Service ae04f2
    <para><function>lwres_gethostent()</function>,
Packit Service ae04f2
      <function>lwres_sethostent()</function>,
Packit Service ae04f2
      <function>lwres_endhostent()</function>,
Packit Service ae04f2
      <function>lwres_gethostent_r()</function>,
Packit Service ae04f2
      <function>lwres_sethostent_r()</function>
Packit Service ae04f2
      and
Packit Service ae04f2
      <function>lwres_endhostent_r()</function>
Packit Service ae04f2
      provide iteration over the known host entries on systems that
Packit Service ae04f2
      provide such functionality through facilities like
Packit Service ae04f2
      <filename>/etc/hosts</filename>
Packit Service ae04f2
      or NIS.  The lightweight resolver does not currently implement
Packit Service ae04f2
      these functions; it only provides them as stub functions that always
Packit Service ae04f2
      return failure.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
    <para><function>lwres_gethostbyname()</function>
Packit Service ae04f2
      and <function>lwres_gethostbyname2()</function> look up the
Packit Service ae04f2
      hostname <parameter>name</parameter>.
Packit Service ae04f2
      <function>lwres_gethostbyname()</function> always looks for an
Packit Service ae04f2
      IPv4 address while <function>lwres_gethostbyname2()</function>
Packit Service ae04f2
      looks for an address of protocol family
Packit Service ae04f2
      <parameter>af</parameter>: either <type>PF_INET</type> or
Packit Service ae04f2
      <type>PF_INET6</type> — IPv4 or IPV6 addresses
Packit Service ae04f2
      respectively.  Successful calls of the functions return a
Packit Service ae04f2
      <type>struct hostent</type>for the name that was looked up.
Packit Service ae04f2
      <type>NULL</type> is returned if the lookups by
Packit Service ae04f2
      <function>lwres_gethostbyname()</function> or
Packit Service ae04f2
      <function>lwres_gethostbyname2()</function> fail.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
    <para>
Packit Service ae04f2
      Reverse lookups of addresses are performed by
Packit Service ae04f2
      <function>lwres_gethostbyaddr()</function>.
Packit Service ae04f2
      <parameter>addr</parameter> is an address of length
Packit Service ae04f2
      <parameter>len</parameter> bytes and protocol family
Packit Service ae04f2
      <parameter>type</parameter> — <type>PF_INET</type> or
Packit Service ae04f2
      <type>PF_INET6</type>.
Packit Service ae04f2
      <function>lwres_gethostbyname_r()</function> is a
Packit Service ae04f2
      thread-safe function
Packit Service ae04f2
      for forward lookups.  If an error occurs, an error code is returned in
Packit Service ae04f2
      <parameter>*error</parameter>.
Packit Service ae04f2
      <parameter>resbuf</parameter> is a pointer to a
Packit Service ae04f2
      <type>struct hostent</type> which is initialised by a successful call to
Packit Service ae04f2
      <function>lwres_gethostbyname_r()</function>.
Packit Service ae04f2
      <parameter>buf</parameter> is a buffer of length
Packit Service ae04f2
      <parameter>len</parameter> bytes which is used to store the
Packit Service ae04f2
      <constant>h_name</constant>, <constant>h_aliases</constant>, and
Packit Service ae04f2
      <constant>h_addr_list</constant> elements of the
Packit Service ae04f2
      <type>struct hostent</type> returned in <parameter>resbuf</parameter>.
Packit Service ae04f2
      Successful calls to <function>lwres_gethostbyname_r()</function>
Packit Service ae04f2
      return <parameter>resbuf</parameter>,
Packit Service ae04f2
      which is a pointer to the <type>struct hostent</type> it created.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
    <para><function>lwres_gethostbyaddr_r()</function>
Packit Service ae04f2
      is a thread-safe function
Packit Service ae04f2
      that performs a reverse lookup of address <parameter>addr</parameter>
Packit Service ae04f2
      which is <parameter>len</parameter> bytes long and is of
Packit Service ae04f2
      protocol
Packit Service ae04f2
      family <parameter>type</parameter> — <type>PF_INET</type> or
Packit Service ae04f2
      <type>PF_INET6</type>.  If an error occurs, the error code is returned
Packit Service ae04f2
      in <parameter>*error</parameter>.  The other function
Packit Service ae04f2
      parameters are
Packit Service ae04f2
      identical to those in <function>lwres_gethostbyname_r()</function>.
Packit Service ae04f2
      <parameter>resbuf</parameter> is a pointer to a
Packit Service ae04f2
      <type>struct hostent</type> which is initialised by a successful call to
Packit Service ae04f2
      <function>lwres_gethostbyaddr_r()</function>.
Packit Service ae04f2
      <parameter>buf</parameter> is a buffer of length
Packit Service ae04f2
      <parameter>len</parameter> bytes which is used to store the
Packit Service ae04f2
      <constant>h_name</constant>, <constant>h_aliases</constant>, and
Packit Service ae04f2
      <constant>h_addr_list</constant> elements of the
Packit Service ae04f2
      <type>struct hostent</type> returned in <parameter>resbuf</parameter>.
Packit Service ae04f2
      Successful calls to <function>lwres_gethostbyaddr_r()</function> return
Packit Service ae04f2
      <parameter>resbuf</parameter>, which is a pointer to the
Packit Service ae04f2
      <function>struct hostent()</function> it created.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
  </refsection>
Packit Service ae04f2
Packit Service ae04f2
  <refsection><info><title>RETURN VALUES</title></info>
Packit Service ae04f2
Packit Service ae04f2
    <para>
Packit Service ae04f2
      The functions
Packit Service ae04f2
      <function>lwres_gethostbyname()</function>,
Packit Service ae04f2
      <function>lwres_gethostbyname2()</function>,
Packit Service ae04f2
      <function>lwres_gethostbyaddr()</function>,
Packit Service ae04f2
      and
Packit Service ae04f2
      <function>lwres_gethostent()</function>
Packit Service ae04f2
      return NULL to indicate an error.  In this case the global variable
Packit Service ae04f2
      <type>lwres_h_errno</type>
Packit Service ae04f2
      will contain one of the following error codes defined in
Packit Service ae04f2
      <filename><lwres/netdb.h></filename>:
Packit Service ae04f2
Packit Service ae04f2
      <variablelist>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>HOST_NOT_FOUND</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              The host or address was not found.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>TRY_AGAIN</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              A recoverable error occurred, e.g., a timeout.
Packit Service ae04f2
              Retrying the lookup may succeed.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>NO_RECOVERY</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              A non-recoverable error occurred.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
        <varlistentry>
Packit Service ae04f2
          <term><constant>NO_DATA</constant></term>
Packit Service ae04f2
          <listitem>
Packit Service ae04f2
            <para>
Packit Service ae04f2
              The name exists, but has no address information
Packit Service ae04f2
              associated with it (or vice versa in the case
Packit Service ae04f2
              of a reverse lookup).  The code NO_ADDRESS
Packit Service ae04f2
              is accepted as a synonym for NO_DATA for backwards
Packit Service ae04f2
              compatibility.
Packit Service ae04f2
            </para>
Packit Service ae04f2
          </listitem>
Packit Service ae04f2
        </varlistentry>
Packit Service ae04f2
      </variablelist>
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
    <para><citerefentry>
Packit Service ae04f2
        <refentrytitle>lwres_hstrerror</refentrytitle><manvolnum>3</manvolnum>
Packit Service ae04f2
      </citerefentry>
Packit Service ae04f2
      translates these error codes to suitable error messages.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
    <para><function>lwres_gethostent()</function>
Packit Service ae04f2
      and <function>lwres_gethostent_r()</function>
Packit Service ae04f2
      always return <type>NULL</type>.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
    <para>
Packit Service ae04f2
      Successful calls to <function>lwres_gethostbyname_r()</function> and
Packit Service ae04f2
      <function>lwres_gethostbyaddr_r()</function> return
Packit Service ae04f2
      <parameter>resbuf</parameter>, a pointer to the
Packit Service ae04f2
      <type>struct hostent</type> that was initialised by these functions.  They return
Packit Service ae04f2
      <type>NULL</type> if the lookups fail or if <parameter>buf</parameter>
Packit Service ae04f2
      was too small to hold the list of addresses and names referenced by
Packit Service ae04f2
      the <constant>h_name</constant>, <constant>h_aliases</constant>, and
Packit Service ae04f2
      <constant>h_addr_list</constant> elements of the
Packit Service ae04f2
      <type>struct hostent</type>.
Packit Service ae04f2
      If <parameter>buf</parameter> was too small, both
Packit Service ae04f2
      <function>lwres_gethostbyname_r()</function> and
Packit Service ae04f2
      <function>lwres_gethostbyaddr_r()</function> set the global
Packit Service ae04f2
      variable
Packit Service ae04f2
      <type>errno</type> to <errorcode>ERANGE</errorcode>.
Packit Service ae04f2
    </para>
Packit Service ae04f2
Packit Service ae04f2
  </refsection>
Packit Service ae04f2
  <refsection><info><title>SEE ALSO</title></info>
Packit Service ae04f2
Packit Service ae04f2
    <para><citerefentry>
Packit Service ae04f2
        <refentrytitle>gethostent</refentrytitle><manvolnum>3</manvolnum>
Packit Service ae04f2
      </citerefentry>,
Packit Service ae04f2
Packit Service ae04f2
      <citerefentry>
Packit Service ae04f2
        <refentrytitle>lwres_getipnode</refentrytitle><manvolnum>3</manvolnum>
Packit Service ae04f2
      </citerefentry>,
Packit Service ae04f2
Packit Service ae04f2
      <citerefentry>
Packit Service ae04f2
        <refentrytitle>lwres_hstrerror</refentrytitle><manvolnum>3</manvolnum>
Packit Service ae04f2
      </citerefentry>
Packit Service ae04f2
    </para>
Packit Service ae04f2
  </refsection>
Packit Service ae04f2
Packit Service ae04f2
  <refsection><info><title>BUGS</title></info>
Packit Service ae04f2
Packit Service ae04f2
    <para><function>lwres_gethostbyname()</function>,
Packit Service ae04f2
      <function>lwres_gethostbyname2()</function>,
Packit Service ae04f2
      <function>lwres_gethostbyaddr()</function>
Packit Service ae04f2
      and
Packit Service ae04f2
      <function>lwres_endhostent()</function>
Packit Service ae04f2
      are not thread safe; they return pointers to static data and
Packit Service ae04f2
      provide error codes through a global variable.
Packit Service ae04f2
      Thread-safe versions for name and address lookup are provided by
Packit Service ae04f2
      <function>lwres_gethostbyname_r()</function>,
Packit Service ae04f2
      and
Packit Service ae04f2
      <function>lwres_gethostbyaddr_r()</function>
Packit Service ae04f2
      respectively.
Packit Service ae04f2
    </para>
Packit Service ae04f2
    <para>
Packit Service ae04f2
      The resolver daemon does not currently support any non-DNS
Packit Service ae04f2
      name services such as
Packit Service ae04f2
      <filename>/etc/hosts</filename>
Packit Service ae04f2
      or
Packit Service ae04f2
      <type>NIS</type>,
Packit Service ae04f2
      consequently the above functions don't, either.
Packit Service ae04f2
    </para>
Packit Service ae04f2
  </refsection>
Packit Service ae04f2
</refentry>