old-www/HOWTO/Glibc2-HOWTO-8.html

60 lines
1.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Glibc 2 HOWTO: Problems.</TITLE>
<LINK HREF="Glibc2-HOWTO-9.html" REL=next>
<LINK HREF="Glibc2-HOWTO-7.html" REL=previous>
<LINK HREF="Glibc2-HOWTO.html#toc8" REL=contents>
</HEAD>
<BODY>
<A HREF="Glibc2-HOWTO-9.html">Next</A>
<A HREF="Glibc2-HOWTO-7.html">Previous</A>
<A HREF="Glibc2-HOWTO.html#toc8">Contents</A>
<HR>
<H2><A NAME="s8">8. Problems.</A></H2>
<P>
<!--
glibc!problems
-->
<P>The glibc package contains a FAQ with additional information that you should
check if you are having problems. An online version is also available
at
<A HREF="http://www.imaxx.net/~thrytis/glibc/glibc-FAQ.html">http://www.imaxx.net/~thrytis/glibc/glibc-FAQ.html</A>. Below
are some tips for solving problems which are not covered in the FAQ or are
covered here in more detail.
<P>
<H2><A NAME="ss8.1">8.1 Host names do not resolve.</A>
</H2>
<P>
<!--
glibc!problems!names not resolving
-->
<P>Glibc 2 uses a different method than libc 5 in looking up host names.
The glibc name server switch (NSS) code looks for a file
<CODE>/etc/nsswitch.conf</CODE>. If host names are not resolving for you
when using a glibc 2 application and your <CODE>/etc/resolv.conf</CODE> is
configured correctly, check if you have the <CODE>/etc/nsswitch.conf</CODE>
file. If you do not have this file, you can create one containing the
line:
<BLOCKQUOTE><CODE>
<PRE>
hosts: files dns
</PRE>
</CODE></BLOCKQUOTE>
It will now look for <CODE>/etc/resolv.conf</CODE> to find the nameservers.
<P>You should look at the section of the libc info pages describing the
nsswitch.conf file for more details.
<P>
<P>
<HR>
<A HREF="Glibc2-HOWTO-9.html">Next</A>
<A HREF="Glibc2-HOWTO-7.html">Previous</A>
<A HREF="Glibc2-HOWTO.html#toc8">Contents</A>
</BODY>
</HTML>