Is there a way to reverse DNS from your browser?

Asked 2 years ago, Updated 2 years ago, 113 views

I'd like to do a reverse lookup from my browser. Is there any way?

Ideally, I wish I could type a Dig command directly from JavaScript, but is there such a function in JavaScript?

Other than that, I can think of a way to exchange the information obtained by the dig command on the server side with ajax, but if multiple people use it at the same time, I would like to avoid it.
It's not enough to have multiple servers...
Please let me know if there is any good way.

javascript dns

2022-09-29 20:14

3 Answers

English version of StackOverflow introduced the whois web service available from JavaScript.
It seems that you can also do reverse drawing, but it seems that there are only paid ones.


2022-09-29 20:14

Don't you think I can do it with this?
http://www.statdns.com/api/

In particular, if you submit Ajax requests in the URL format "Get reverse (PTR) record from IPv4 addresses" or "Get reverse (PTR) record from IPv6 addresses" at the bottom of the page, you will get JSON responses many times for free.


2022-09-29 20:14

JavaScript does not have an API, so the server needs to make a request.

By deploying DNS cache servers such as BIND on the server side, you can reduce requests to external DNS servers as much as possible.


2022-09-29 20:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.