script or other suggestion

Herta Van den Eynde herta.vandeneynde at gmail.com
Mon Nov 26 23:21:28 UTC 2007


On 23/11/2007, chloe K <chloekcy2000 at yahoo.ca> wrote:
> this is very fast
>
> how come sometimes I get the hostname, most of the time it can't
>
> how can I have hostname to print it out?
>
>
> Host 192.168.63.245 appears to be up.
> Host 192.168.63.246 appears to be up.
> Host 192.168.63.247 appears to be up.
> Host 192.168.63.248 appears to be up.
> Host zzz.com (192.168.63.249) appears to be up.
> Host 192.168.63.250 appears to be up.
> Host 192.168.63.251 appears to be up.
>
> Thank you
>
> Jim Canfield <jcanfield at tshmail.com> wrote: or...just use nmap to ping a range.
>
> EX:  nmap -sP 192.168.1.1-254

If the host is not defined in dns, you won't get a translation of the
ip address to hostname.

Just compare the output of these commands:
'host 192.168.63.247'
'host 192.168.63.249'

Kind regards,

Herta




More information about the redhat-list mailing list