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) :frowning:
  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. :confused:

Please post the contents of these two files:

/etc/resolv.conf

and

/etc/hosts

/etc/resolv.conf

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

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:

*** 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.

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

Thanks fpmurphy.

No there is no warning during nslookup.
There was a hostname in /etc/rc.config.d/netconf
it was:

HOSTNAME=hp-j5000

I changed it to:

HOSTNAME=hp-j5000.magnet.com

Also I added domain to resolv.conf:

domain magnet.com

However, there is still the same problem:

#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.

Your name server at address 192.168.200.1 is not set up correctly.

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

192.168.200.1 is ADSL modem/router, it provides DHCP on demmand and resolves external (Internet) DNS.
I checked out - routers domain name is ar7, so I changed domain name of my system to this one in /etc/resolv.conf and /etc/rc.config.d/netconf HOSTNAME=hp-j5000.ar7.
Also I registred this computer with hostname to my router, but still there is the same problem, because my router does not resolves internal DNS (it has no such option).

Interesting point, that Solaris 10 for example, resolves DNS from /etc/hosts.
Is there way to enfoce my HP-UX to resolve names from /etc/hosts too?

P.S. Now, CDE logs off automatically without error messages. I don't know if it's better or worse than situation with error message... :slight_smile:

:DThanks for the support!

I found the problem.
It was with DNS client, third source was /etc/hosts but second source was not specified. I think it is bug of installation program. Now everything pings and CDE works great.:slight_smile: