Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nslookup in Javascript

Status
Not open for further replies.

hiyatran

Technical User
Aug 7, 2010
21
CA
I checked everyone on the web but it doesn't have javascript codes to convert a domain to an ip address but there are sites that does it for you.

How do I go about coding an nslookup using javascript.

Convert google.com to an IP address.

any comments or suggestions is greatly appreciated.
thank you

 
I'm fairly sure you will not be able to reliably do this cross-browser using client-side JavaScript alone.

Perhaps using an ActiveX control in IE you could run a program to give you the answer, and perhaps in XUL you could use some JS not normally available to front-end JavaScript.

I'd say your best bet is to do this server-side (e.g. PHP, ASP, etc) and make the answer available to the front-end.

Hope this helps,

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top