We help IT Professionals succeed at work.

hostname from ip address

Prog_ asked
Medium Priority
Last Modified: 2010-08-05
Is there a way in JavaScript or VBScript to get the hostname from an IP address ?
Watch Question

Software Engineer
Via ajax.  Send a request to a server application that performs an "nslookup"

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.