- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ping localhost
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
Forums
Discussions
Discussions
Discussions
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
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
04-25-2003 12:16 PM
04-25-2003 12:16 PM
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 12:21 PM
04-25-2003 12:21 PM
Re: ping localhost
ping 127.0.0.0
If you can able to ping IP address then You need to check DNS setup.
Look /etc/nsswitch.conf and /etc/resolv.conf for DNS
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 12:22 PM
04-25-2003 12:22 PM
Re: ping localhost
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 12:24 PM
04-25-2003 12:24 PM
Re: ping localhost
Are you using DNS??
Check for /etc/nsswitch.conf
It should look like this fir the hosts :
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 12:29 PM
04-25-2003 12:29 PM
Re: ping localhost
localhost IN A 127.0.0.1
If you do not have this put it up increment the serial number and restart the named.
Check /etc/named.conf file in your dns server it should look for
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
if you do not have this entry in your named.conf file add it.
Create a file called named.local (remember file name can be different).
This file will look like this
#cat named.local
;
; @(#)named.local 1.1 (Berkeley) 86/01/21
;
$TTL 86400
@ IN SOA mayday.dgc.com. root@
dgc.com. (
1002 ; Serial No
10800 ; Refresh every three hours
3600 ; Retry every hour
604800 ; Expire every 7 days
86400 ) ; Minimum TTL every 8 hours
;
; Servers for dgc.com
;
IN NS mayday.dgc.com.
;
1 IN PTR localhost.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 12:30 PM
04-25-2003 12:30 PM
Solution/etc/nsswitch.conf as noted above.
/etc/resolv.conf
This tells the system where to look for DNS resolution. These guys need to resolve names not defined in /etc/hosts
To test
nslookup local_host_name
This should resolve and it should tell you whether it worked in files for DNS. The server providing the information should be identified.
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
04-25-2003 12:32 PM
04-25-2003 12:32 PM
Re: ping localhost
hosts: files dns
Now nslookup will first look in to /etc/hosts file if it will not find the answer then it goes to dns.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 12:52 PM
04-25-2003 12:52 PM
Re: ping localhost
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2003 01:04 PM
04-25-2003 01:04 PM
Re: ping localhost
I tweaked the /etc/nsswitch.conf to look at the /etc/hosts file first and all is well.
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2003 06:19 PM
04-26-2003 06:19 PM
Re: ping localhost
Jon
js_finley@hotmail.com