The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can't ping using hostname on Solaris 10 alpha123 SUN Solaris 4 10-29-2008 02:05 AM
cannot ping by hostname tlee SUN Solaris 1 03-12-2008 07:03 AM
MOUNT FTP 11iv2 vouchy HP-UX 0 09-06-2007 08:08 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 10:52 PM
looking up hostname dangral IP Networking 2 10-28-2003 04:56 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-25-2007
netwalker netwalker is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 44
Question UX 11iV2 - No ping by hostname

Hi.

I just installed the HP-UX 11i V2.
I have problems with CDE - it is inoperative (after logon there is a message box: messaging system failure - or something like that, it asks to check /etc/hosts and network settings).

nslookup works by hostname and IP, hostname shown the correct hostname.
Internet addresses are also accessabble from my computer (for example google).

About ping:
1. It pings to "localhost"
2. It does not ping to my hostname (host name is set via /usr/sbin/sam on file /etc/hosts)
3. It pings to my IP (from remote computers too)

This computer is set to permanent IP address and custom set hostname, no DHCP. Network is based on ADSL modem+router (it provides DNS and DHCP by demand) and switch.

Please help me, to find why there is no ping to my hostname. I beleave, that all problems with CDE destop are comming from this issue.
  #2 (permalink)  
Old 08-25-2007
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Please post the contents of these two files:

/etc/resolv.conf

and

/etc/hosts
  #3 (permalink)  
Old 08-25-2007
netwalker netwalker is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 44
Post

/etc/resolv.conf
Code:
domain
nameserver 192.168.200.1
nameserver 192.168.200.40
nameserver 127.0.0.1
The last two, I added them in hope, that computer will try to resolve it's hostname from itself.
Maybe I should to start DNS server on it?

/etc/hosts
Code:
127.0.0.1 localhost
192.168.200.40 hp-j5000 loghost
Looks like there is no affect of this file on my system. Without this file the same behavior - nslookup still resolves correctly hostname and IP.

Also, nslookup shows the following warning:
Code:
*** Warning - the local domain os not set.
*** Either hostname should be a domain name,
*** the domain should be specified in /etc/resolv.conf,
*** or shell variable LOCALDOMAIN should be set.
I tryed the set the domain name (I set it as hostname - hp-j5000) in /etc/resolv.conf the behavior was the same, just no that warning.

Last edited by netwalker; 08-25-2007 at 06:20 PM.. Reason: Spelling
  #4 (permalink)  
Old 08-25-2007
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Type "man 4 resolv.conf" to get the documentation you need.

You have not specified a domain in resolv.conf e.g.

domain murphy.com

You also need to modify /etc/rc.config.d/netconf to include the hostname of your
computer e.g.

HOSTNAME=fpm.murphy.com
  #5 (permalink)  
Old 08-26-2007
netwalker netwalker is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 44
Thanks fpmurphy.

No there is no warning during nslookup.
There was a hostname in /etc/rc.config.d/netconf
it was:
Code:
HOSTNAME=hp-j5000
I changed it to:
Code:
HOSTNAME=hp-j5000.magnet.com
Also I added domain to resolv.conf:
Code:
domain magnet.com
However, there is still the same problem:
Code:
#hostname
hp-j5000.magnet.com

#nslookup hp-j5000
Name Server: mygateway1.ar7
Address: 192.168.200.1

Trying DNS
Trying NIS
tooking up FILES
Name: hp-j5000
Address: 192.168.200.40
Alieases: loghost

#ping hp-j5000
ping: unknown host hp-j5000
In other words, the system is still unable to resolve the hostname.
In DNS client, /usr/sbin/sam shows that one of DNS sources is /etc/hosts, but actually the system doesn't apply to this file and still not resolving names.
How to make the system applying to /etc/hosts too?

Thanks.
  #6 (permalink)  
Old 08-26-2007
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Your name server at address 192.168.200.1 is not set up correctly.

Is this your DNS server? Did you configure it yourself?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:49 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0