Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-26-2006, 09:58 PM   #1
Registered: Mar 2006
Posts: 96

Rep: Reputation: 16
why RH/debian have 2 files for resolution name?

I have debian 3.1r1 and FC5

boths have two files to resolution name:

why this??

Thanks in advance
Old 05-27-2006, 12:50 AM   #2
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 77
One of them (host.conf) is there for the resolver routines in your C library (used for DNS). This one is much simpler. The other (nsswitch.conf) is for the NameServiceSwitch routines in your C library. This is much more than just DNS. In fact, NSS is designed to be extensible for adding new services when they are needed/invented.

Most simpler programs will prefer to use -lresolv, and thereby use the leaner, more portable host.conf (indirectly). Some other programs use NSS since they require information other than or in addition to DNS.

See also:
man 3 resolver
man 5 resolv.conf
man 5 host.conf
man 5 nsswitch.conf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get a better resolution than 800X600 on debian bharath144 Linux - General 4 03-12-2006 11:23 AM
Debian Screen resolution..... Eux Debian 19 10-26-2005 07:30 PM
Name resolution problem in Debian TiredOfLinux Linux - Networking 4 02-21-2005 03:57 PM
Debian resolution Mingthefirst Debian 8 11-06-2004 09:53 PM
Adding a resolution to Debian zedman Linux - Newbie 7 08-02-2004 11:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration