UX 11iV2 - No ping by hostname


 
Thread Tools Search this Thread
Operating Systems HP-UX UX 11iV2 - No ping by hostname
# 1  
Old 08-25-2007
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) Smilie
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. Smilie
# 2  
Old 08-25-2007
Please post the contents of these two files:

/etc/resolv.conf

and

/etc/hosts
# 3  
Old 08-25-2007
Java

/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 07:20 PM.. Reason: Spelling
# 4  
Old 08-25-2007
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  
Old 08-26-2007
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  
Old 08-26-2007
Your name server at address 192.168.200.1 is not set up correctly.

Is this your DNS server? Did you configure it yourself?
# 7  
Old 08-26-2007
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... Smilie

Last edited by netwalker; 08-26-2007 at 10:47 AM.. Reason: Additional information
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

DNS problem : ping doesn't recognize hostname

I have vmware on my windows PC ( hostname : acer ). vmware has RHEL 7 ( hostname : rhel7 ) installed recently. RHEL IP configuration IP : 192.168.5.128 Netmask : 255.255.255.0 ssh to rhel7 works from acer using putty resolve.conf cat /etc/resolv.conf nameserver 192.168.5.1 host... (12 Replies)
Discussion started by: hiten.r.chauhan
12 Replies

2. Shell Programming and Scripting

Ping the hostname of many servers using a script

Hi We have some 300 servers in the Data center and some of them are running with AIX and some of them are running with Solaris. I need a script which can be run in one of the server and that script should ping the hostname of all the 300 servers. Also the script should notify if any server is... (9 Replies)
Discussion started by: newtoaixos
9 Replies

3. Solaris

my sun solaris 10 cannot ping and nslookup other server using hostname.

hi.... i have sun solaris 10 server, fedora 10, and Windows Server.. i cant ping my sun solaris 10, fedora 10 and Windows Server using hostname (etc: ping winserver.bengkel2.com), but i can ping all using IPV4 and IPV6 address.. can u give some suggestion to solve my problem or some idea to... (3 Replies)
Discussion started by: izuan_7657
3 Replies

4. UNIX for Advanced & Expert Users

ping by hostname not working

anyone ever seen this problem: I can ping the server by IP address but I can't by hostname. nslookup is working and dns query is ok. # nslookup mwxnsb24 Server: 10.11.49.206 Address: 10.11.49.206#53 Name: mwxnsb24 Address: 10.10.58.175 # ping... (8 Replies)
Discussion started by: linuxgeek
8 Replies

5. UNIX for Dummies Questions & Answers

Suse 10 SP3 won't ping hostname

hi guys I got something I haven't been able to fix I configure a Linux Suse 10 box, added static IP, DNS (resolv), gateway (routes) but I am not able to ping other servers by name but nslookup works and the server can navigate on internet check below the problematic server is server-host20 ... (4 Replies)
Discussion started by: kopper
4 Replies

6. HP-UX

how to upgrade from 11iv2 to 11iv3

hi everyone i need to upgrade from 11iv2 to 11iv3 i have hp11iv2 "mission critical operating environment " june 2007 i need the steps or give me link to read and i will do but explain to me to make it easy for me (2 Replies)
Discussion started by: maxim42
2 Replies

7. AIX

Ping by hostname

Hello everyone I have a partition with a problem with ping. If I do a ping by ip for example ping 1.1.1.1 I got no problem but If I ping by hostname for example ping partition1 take almost a minute to respond me. I have Aix 5.3 and I have another 19 partitions with no problem. The only... (5 Replies)
Discussion started by: lo-lp-kl
5 Replies

8. Solaris

Can't ping using hostname on Solaris 10

I recently installed Solaris 10 on my Sun workstation. I cannot ping using hostname from another computer on the same network. But I can ping using the IP address. Also I can ping other systems using their hostnames. Can anyone give some information regarding how to resolve this issue. (4 Replies)
Discussion started by: alpha123
4 Replies

9. Solaris

cannot ping by hostname

Hi All, My current setup is: 1x Windows Server (Windows 2000 server) 1x Unix Server 2x Windows machine 3x Unix Terminals (Hostnames = A, B and C) Problem The problem iam having is Unix terminal C cannot be ping across by Unix terminal A or B or Unix server by using the hostname. Unix... (1 Reply)
Discussion started by: tlee
1 Replies

10. HP-UX

MOUNT FTP 11iv2

Hi Gurus, Is there any module like FUSE to mount a ftp dir on HP-UX?? Please Help. Vouchy (0 Replies)
Discussion started by: vouchy
0 Replies
Login or Register to Ask a Question