阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      Node.js dns dnsPromises.resolve4

      Node.js dns dnsPromises.resolve4(hostname[, options])

      新增于: v10.6.0

      • hostname < string> Hostname to resolve.
      • options < Object>
        • ttl < boolean> Retrieve the Time-To-Live value (TTL) of each record. When true, the Promise is resolved with an array of { address: ‘1.2.3.4’, ttl: 60 } objects rather than an array of strings, with the TTL expressed in seconds.

      Uses the DNS protocol to resolve IPv4 addresses (A records) for the hostname. On success, the Promise is resolved with an array of IPv4 addresses (e.g. [‘74.125.79.104’, ‘74.125.79.105’, ‘74.125.79.106’]).


      更多内容请参考:Node.js dns 域名服务器,或者通过 点击对应菜单 进行查看;


      目录
      本文目录
      目录