Nslookup in Javascript

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

JavaScript doesn’t provide any server methods like nslookup.

You could accomplish this with a simple PHP script (or .NET, Ruby, whatever your preferred language is).

In PHP you could use a function like gethostbyname() to get the IP address.

OK, tks
I’ll give it a try.