Operating System - Tru64 Unix
1748122 Members
3417 Online
108758 Solutions
New Discussion юеВ

ping -a hostname in tru64

 
Harmanjit_1
Frequent Advisor

ping -a hostname in tru64

Hi,

Can anyone suggest alternate for ping -a hostname in tru64.

thanks
5 REPLIES 5

Re: ping -a hostname in tru64

Harmanjit:

So do you want ping to resolve an ip address from a hostname when reporting echo replies? (reverse lookup) That's what "ping -a" does on DOS/Windows and some *nix distributions. With Tru64 you don't need a switch to do this; whatever you specify on the command line will have it's counterpart in the output. If you specify a hostname, the IP address will be returned in the output and vice versa. use the -n option if you just want numeric ouput.

However, in Solaris for example, the -a switch to ping specifies that it probe all addresses, both IPv4 and IPv6, of a multihomed destination. The output will appear as if ping was run once for each IP address of the destination. Is that what you want? If so, I don't think there's a switch for that specifically. Try looking at the -G and -V switches for more info. Here's a man page if you don't have it:

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN8/0289____.HTM

jack

Ivan Ferreira
Honored Contributor

Re: ping -a hostname in tru64

You must have a DNS server configured (or all your hosts in the /etc/hosts file).

Your Tru64 have to be configured as an DNS client for that DNS server. After that, ping will report the hostname of the host.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Arch_Muthiah
Honored Contributor

Re: ping -a hostname in tru64

There is no equivalent option for -a in Tru64, By default, the PING command tries to resolve host names as an IPv6 address then IPv4 address.



Archunan
Regards
Archie
Harmanjit_1
Frequent Advisor

Re: ping -a hostname in tru64

Hi All,

Thanks for your help.

Regards
GESSNER_1
New Member

Re: ping -a hostname in tru64

Hi Harmanjit,
The purpose of ping -a is probably "reverse DNS resolution" in your case ?
There is a command able of that in Tru64 : Netstat.
To obtain reverse dns lookups you can compare outputs of netstat -a and netstat -an ?
But that can only work for a host with an active connection.
Hope it helps.

Marc