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
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
тАО03-22-2007 05:19 AM
тАО03-22-2007 05:19 AM
DNS
The nsswitch.conf is configured to use /etc/hosts file only. But when the /etc/resolv.conf does not exist, nslookup/dig took a long time to run then it timed out and returned nothing, even though there is an entry in /etc/hosts.
Do you know how to fix this? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 06:23 AM
тАО03-22-2007 06:23 AM
Re: DNS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 06:34 AM
тАО03-22-2007 06:34 AM
Re: DNS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 07:15 AM
тАО03-22-2007 07:15 AM
Re: DNS
Some versions of "host" use the system resolver and will honor the settings in nsswitch.conf, but on my RHEL4 systems host still only uses DNS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 07:22 AM
тАО03-22-2007 07:22 AM
Re: DNS
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1110957
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 07:39 AM
тАО03-22-2007 07:39 AM
Re: DNS
Every system needs an /etc/resolv.conf file. Put one in that says this:
nameserver 127.0.0.1
Also, add dns as a second line to the hosts lookup entry in /etc/nsswitch.conf
SEP
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
тАО03-22-2007 09:39 AM
тАО03-22-2007 09:39 AM
Re: DNS
Place files first in /etc/nsswitch.conf for hosts.
However, nslookup/dig of hostname/ip listed in /etc/hosts failed.
this is wried....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2007 11:04 AM
тАО03-22-2007 11:04 AM
Re: DNS
I've seen situation where dig/nslookup worked and ping did not and weirdly the reverse.
Why don't you upload /etc/nsswitch.conf I suspect something strange going on.
You might also want to make sure you have only one GATEWAY entry in either /etc/sysconfig/network or the ifcfg file in /etc/sysconfig/network-scripts directory.
No GATEWAY entry can cause this kind of network weirdness. Two GATEWAYS can as well.
I won't be looking at the upload for a bit, its bedtime.
:0
SEP
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
тАО03-22-2007 11:28 AM
тАО03-22-2007 11:28 AM
Re: DNS
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# compat Use compatibility setup
# nisplus Use NIS+ (NIS version 3)
# nis Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# [NOTFOUND=return] Stop searching if not found so far
#
# For more information, please read the nsswitch.conf.5 manual page.
#
# passwd: files nis
# shadow: files nis
# group: files nis
passwd: compat
group: compat
#hosts: files dns
hosts: files [NOTFOUND=return]
#networks: files dns
networks: files
services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files nis
publickey: files
bootparams: files
automount: files nis
aliases: files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 02:05 AM
тАО03-23-2007 02:05 AM
Re: DNS
as stated by others: on LINUX, nslookup and hosts do not read the nsswitch.conf file.
I know on HPUX nslookup (there is no 'hosts' command on HPUX) does follow the nsswitch.conf.
But not on Linux. And also not on Solaris.
That's the way it is?!
JP.