Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/node/dns.ts>reverse

Deno standard library
Go to Latest
function reverse
import { reverse } from "https://deno.land/std@0.177.0/node/dns.ts";

Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of host names.

On error, err is an Error object, where err.code is one of the DNS error codes.

Parameters

ip: string
callback: (err: ErrnoException | null, hostnames: string[]) => void