How to get the Computername

Reply

Join Date: Oct 2003
Posts: 10
Reputation: bk_raavi is an unknown quantity at this point 
Solved Threads: 0
bk_raavi bk_raavi is offline Offline
Newbie Poster

How to get the Computername

 
0
  #1
Feb 20th, 2004
Hai,
How can i get the Computername by Ping Command When i know the IP number.

(I.e) IP number 10.3.34.86
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 2,198
Reputation: GrimJack will become famous soon enough GrimJack will become famous soon enough 
Solved Threads: 15
Featured Poster
GrimJack's Avatar
GrimJack GrimJack is offline Offline
Postaholic

Re: How to get the Computername

 
0
  #2
Feb 22nd, 2004
I dont' think ping will do it
google is your friend
http://www.google.com/search?hl=en&i...=Google+Search
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 9
Reputation: Swirler is an unknown quantity at this point 
Solved Threads: 1
Swirler Swirler is offline Offline
Newbie Poster

Re: How to get the Computername

 
0
  #3
Feb 27th, 2004
i think that finger will be adequat.
> finger 10.3.34.86
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: How to get the Computername

 
0
  #4
Feb 27th, 2004
Isn't finger a unix utility which gets info about the box's logged in users?
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: How to get the Computername

 
0
  #5
Feb 27th, 2004
That is correct. Finger won't return the hostname.

Also, if you're attempting to get the hostname of a remote box, that could be considered an attempt to compromise the system (even if you aren't trying to actually DO that) and the new laws carry a penalty of life imprisonment for doing that.

There's also other ways to do what you're trying to do. The easiest is to have that person send you an e-mail, which will contain the originating hostname in the header of the message.

What exactly are you trying to do?
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 9
Reputation: Swirler is an unknown quantity at this point 
Solved Threads: 1
Swirler Swirler is offline Offline
Newbie Poster

Re: How to get the Computername

 
0
  #6
Feb 27th, 2004
Originally Posted by TheOgre
That is correct. Finger won't return the hostname.
Yes, your right, that's completly wrong :-| ...

Instead, TheOgre's solution is a good one. It is possible to get the hostname using a php function too ( $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); )... But it's not easier to make someone visit a web site than to make him send you a mail...
Here again, it depends of what you need to do exactly.
Reply With Quote Quick reply to this message  
Join Date: Feb 2004
Posts: 2,198
Reputation: GrimJack will become famous soon enough GrimJack will become famous soon enough 
Solved Threads: 15
Featured Poster
GrimJack's Avatar
GrimJack GrimJack is offline Offline
Postaholic

Re: How to get the Computername

 
0
  #7
Mar 2nd, 2004
<i>I dont' think ping will do it
google is your friend
http://www.google.com/search?hl=en&...G=Google+Search>/>

I guess I was being too subtle; this search pointed to a page to find tools that might have but did not work/ Network-Tools.com being the easiest to use. I thought that if he put a little effort into his search he would learn something -- especially the pre-web tools we use to use. Don't you just love those tools: finger, whois, ping, lookup, daemon.

Anyway, looking around on that site would get you to this disclaimer:
Computer ('host') name or domain name? Normally, A domain name is not necessarily a 'host' name. For instance www.consumer.net and www2.consumer.net could be two different 'host' computers under the same domain. The computers could be separated and result in a completely different traceroute for each. A domain name, such as 'consumer.net,' may or may not be a 'host' or machine name depending on the configuration. 'Third level' or higher names, such as www.consumer.net are not registered except internally to the entity that owns the domain name.

This would not have answered the question but the asker might have learned something; I know I did -- give em an answer and point to where you got it, don't just point to where to look around to get the answer.

GrimJack

I do like this group
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Networking Hardware Configuration Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC