- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: what is the difference between /etc/host.conf ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 09:52 AM
тАО09-30-2003 09:52 AM
what is the difference between /etc/host.conf and /etc/nsswitch.conf
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 12:28 PM
тАО09-30-2003 12:28 PM
Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf
It decides how resolution like hostname resolution happens on your system.
/etc/hosts is also a requirement, because all machines need a loopback address. Beyond that, you don't have to use /etc/hosts for names resolution if you use DNS.
nsswitch tells the machine how to resolve hostnames. hosts can be used to actually resolve hostnames.
SEP
Please don't forget to assign points if this helps.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 12:45 PM
тАО09-30-2003 12:45 PM
Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf
In any case Steve is right.
The 'host.conf' is the old way of telling Linux the resolver order. On other *nix systems, this was an entry in /etc/resolv.conf called 'hostresorder'.
nsswitch.conf does this, as well as the lookup method/order for many other subsystems, thus it is far more useful.
I'm unsure whether you can get away with not having a 'host.conf', but I think you can on a modern machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2003 05:05 PM
тАО09-30-2003 05:05 PM
Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2003 03:26 AM
тАО10-01-2003 03:26 AM
Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf
/etc/hosts
/etc/hosts.equiv.
But you need /etc/nsswitch.conf indeed.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2003 10:14 AM
тАО10-01-2003 10:14 AM
Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf
I still don't understand what /etc/host.conf for, and if the server works fine without it, why this file exists there.
Point will be followed later.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-01-2003 11:29 AM
тАО10-01-2003 11:29 AM
Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf
The 'host.conf' is the old way of telling Linux the resolver order. On other *nix systems, this was an entry in /etc/resolv.conf called 'hostresorder'.
"old way". As in there are newer 'better' ways. It's still there 'cause it's the most known in the Linux world. As one of the other posters said, you can remove it, and it won't have any affect, assuming your nsswitch.conf is configured properly.