hostname from ip address

Posted on 2006-11-02
Last Modified: 2010-08-05
Is there a way in JavaScript or VBScript to get the hostname from an IP address ?
Question by:Prog_
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 41

Accepted Solution

HonorGod earned 125 total points
ID: 17858791
Via ajax.  Send a request to a server application that performs an "nslookup"
LVL 18

Expert Comment

ID: 17858822
Javascript: No, unless you use a 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.

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question