Operating System - HP-UX
1748180 Members
4113 Online
108759 Solutions
New Discussion юеВ

Re: Not able to ping by hostname

 
vat
Advisor

Not able to ping by hostname

Dear All,

 

We have three HP Unix servers in our landscap. I am alble to ping them internally by host name.

 

But from other machine in the desktop I am not able to ping by host name. Only IP Address can be ping from other machin.

 

Thanks in advance,

 

Regards,

 

Nirav

5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: Not able to ping by hostname

>But from other machine in the desktop

 

I assume this is Windows, so it is a Windows problem.  Have you added these hosts to your DNS server?

What Windows version are you using?

Torsten.
Acclaimed Contributor

Re: Not able to ping by hostname

Sounds like a DNS issue, the servers are not known to DNS. Check with nslookup.


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Naj
Valued Contributor

Re: Not able to ping by hostname

Hi,

Seems like your hostname could not resolve and you may check it by using below command

#nslookup (hostname)

If there has error message means you need add your hostname to your DNS server

Thanks

BR
Naj

____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
Arunabha Banerjee
Valued Contributor

Re: Not able to ping by hostname

If you don't want to setup DNS server then go to Windows machine and go the folded C:\WINDOWS\system32\drivers\etc and edit the HOSTS file. Add your HP server IP and hostname after localhost entry. Then you will be able to ping the server using hostname.

 

Below is the Windows sample HOSTS file

 

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
10.x.x.x            hpserver1
10.x.x.y            hpserver2
10.x.x.z            hpserver3

AB
vat
Advisor

Re: Not able to ping by hostname

Dear All,

Thank you all for your reply.

The reason we need this because we plant to impliment DR setup for out SAP Production server which is on HP-Unix 11.31 in HA enviroenment.

From your post I can understand that we required DNS Server at our place.  I have plant accordingly. The steps are as below. Request you all to plase share you experience.

We will use oracle dataguard for DR solution.

 Our DR server will be placed at remote location and has different network.

In case of failover I have planned following :

1. We will create DNS server at Primary site and at remote site (which will be slave or secondary DNS server) where we plant to place DR Server.

2. Both DNS server will be sync in real time for any updated DNS record

3. All client/users/PC have two dns address in their network configuration

4. If one DNS server will down second DNS server from remote site will work.

5. We will assign name to SAP server at primary site.

6. If SAP server will be down then either manually or automatically the record will be change and point out to the DR site SAP server.
So user do not need to change IP address or any thing in their computer (SAP GUI).

7. Existing connection will be disconnected and user has to re-connect.

Thanks in advance,

Nirav