- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- nslookup to use /etc/hosts in LINUX
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
02-01-2005 08:50 PM
02-01-2005 08:50 PM
In LINUX nslookup is always using BIND for
hostname resolution. Anybody know how to override this with /etc/hosts
Thanks
Sajeesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 10:21 PM
02-01-2005 10:21 PM
Re: nslookup to use /etc/hosts in LINUX
come to the line:
dns files (it can in defferent order)
and change it to:
files dns
This will cause the search order to be first in /etc/hosts and then in DNS.If you wish to eliminate search in DNS remove "dns" from this line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 11:54 PM
02-01-2005 11:54 PM
Solutionfor getting info from /etc/hosts you may use getent utility.
See "Getting an entry with getent?http://www.itworld.com/Comp/3380/nls_unixgetent041202/index.html for more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 12:58 AM
02-02-2005 12:58 AM
Re: nslookup to use /etc/hosts in LINUX
The purpose of nslookup utility is to query DNS,so ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 01:50 PM
02-02-2005 01:50 PM
Re: nslookup to use /etc/hosts in LINUX
Thanks. This solve the purpuse.
Sajeesh