dnsResolve.d.ts 437 B

12345678910111213141516
  1. /**
  2. * Resolves the given DNS hostname into an IP address, and returns it in the dot
  3. * separated format as a string.
  4. *
  5. * Example:
  6. *
  7. * ``` js
  8. * dnsResolve("home.netscape.com")
  9. * // returns the string "198.95.249.79".
  10. * ```
  11. *
  12. * @param {String} host hostname to resolve
  13. * @return {String} resolved IP address
  14. */
  15. export default function dnsResolve(host: string): Promise<string | null>;
  16. //# sourceMappingURL=dnsResolve.d.ts.map