Linux Online
[ Register ]

[ Applications ]
[ Documentation ]
[ Distributions ]
[ Download Info ]
[ General Info ]
[ Book Store ]

Advertisement

[ Courses ]
[ News ]
[ People ]
[ Hardware ]
[ Vendors ]
[ Projects ]
[ Events ]
[ User Groups ]
[ User Area ]

Moving to Linux: Kiss the Blue Screen of Death Goodbye!

[ About Us ]
[ Home Page ]
[ Advertise ]

Glibc 2 HOWTO: Problems.
Next Previous Contents

8. Problems.

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 http://www.imaxx.net/~thrytis/glibc/glibc-FAQ.html. Below are some tips for solving problems which are not covered in the FAQ or are covered here in more detail.

8.1 Host names do not resolve.

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 /etc/nsswitch.conf. If host names are not resolving for you when using a glibc 2 application and your /etc/resolv.conf is configured correctly, check if you have the /etc/nsswitch.conf file. If you do not have this file, you can create one containing the line:

 hosts:        files dns
 
It will now look for /etc/resolv.conf to find the nameservers.

You should look at the section of the libc info pages describing the nsswitch.conf file for more details.


Next Previous Contents


Comments: feedback (at) linux.org
Advertising: banners (at) linux.org
Copyright Linux Documentation Project.
Compilation ©1994-2008 Linux Online, Inc.
All rights reserved.