Can I perform a DNS lookup (hostname to IP address) using client-side Javascript?

后端 未结 16 1470
没有蜡笔的小新
没有蜡笔的小新 2020-11-22 11:45

I would like to use client-side Javascript to perform a DNS lookup (hostname to IP address) as seen from the client\'s computer. Is that possible?

16条回答
  •  粉色の甜心
    2020-11-22 11:58

    There's a third-party service which provides a CORS-friendly REST API to perform DNS lookups from the browser - https://exana.io/tools/dns/

提交回复
热议问题