• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1046
  • Last Modified:

hostname from ip address

Is there a way in JavaScript or VBScript to get the hostname from an IP address ?
0
Prog_
Asked:
Prog_
1 Solution
 
HonorGodSoftware EngineerCommented:
Via ajax.  Send a request to a server application that performs an "nslookup"
0
 
MorcalavinCommented:
Javascript: No, unless you use a wscript.shell active-X object to run a nslookup command that is pipee to a file, then use another active-x object to read the resulting file.

I believe the same could be said for VBScript as well, although you may be able to capture stout directly with vbscript and not have to write to the file.

You could have a perl/php/[insert languange here] script run that could get the hostname and then use javascript to get that url and display the results.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now