Computing.Net > Forums > Linux > IP address to name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

IP address to name

Reply to Message Icon

Name: J-P
Date: April 4, 2002 at 13:24:28 Pacific
Comment:

Really simple question!

How can I ping a IP on my network to get the name of the machine ? in Linux with windows machine ?

something like 194.168.0.1 is "Server_Pdc"
Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: danny
Date: April 4, 2002 at 13:50:41 Pacific
Reply:

Your question look strange!! Ping has nothing to do with dns.

To know computer's name that belong to an IP address, use your dns resolver.

nslookup -type=ptr 194.168.0.1

Ping is a diagnostic tool used to test if a certain IP will respond. It does not provide host information.


0

Response Number 2
Name: J-P
Date: April 5, 2002 at 05:39:10 Pacific
Reply:

If you take windows machine you can do

ping -a address

-a resolve address to hostname

I would like to do the same thing in linux ???


0

Response Number 3
Name: Danny Larouche
Date: April 5, 2002 at 08:00:39 Pacific
Reply:

In Unix/Linux ping will do that by default if your server is correctly installed.

will received answer like:
64 bytes from pc1.domain.com (194.168.0.1): icmp_seq=0 ttl=128 time=589.5 ms


0

Response Number 4
Name: Kenan Bektas
Date: April 6, 2002 at 20:18:37 Pacific
Reply:

Or, use linux command "host"

host IP_number


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: IP address to name

assigning ip address to an ethernet cd. www.computing.net/answers/linux/assigning-ip-address-to-an-ethernet-cd/4360.html

permanently assign. ip address to an eth www.computing.net/answers/linux/permanently-assign-ip-address-to-an-eth/4361.html

IP address & modem to get connected www.computing.net/answers/linux/ip-address-amp-modem-to-get-connected/5911.html