Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1044
  • 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
 
HonorGodCommented:
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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