Reverse-resolves an IP address to its host names via a PTR query.
Builds the in-addr.arpa (IPv4) or nibble-reversed ip6.arpa (IPv6) name and queries it for PTR records.
in-addr.arpa
ip6.arpa
The IPv4 or IPv6 address.
Resolver/query options.
The PTR target names; empty if there is no reverse record.
If ip is not a valid address, or on a server error rcode.
ip
1.0.4
import { reverse, RESOLVERS } from 'edgeport/dns';const names = await reverse('8.8.8.8', { server: RESOLVERS.google }); // ['dns.google', ...] Copy
import { reverse, RESOLVERS } from 'edgeport/dns';const names = await reverse('8.8.8.8', { server: RESOLVERS.google }); // ['dns.google', ...]
Reverse-resolves an IP address to its host names via a PTR query.
Builds the
in-addr.arpa(IPv4) or nibble-reversedip6.arpa(IPv6) name and queries it for PTR records.