Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

285 B
Raw Blame
import { lookup } from 'node:dns/promises';

export async function dnsLookupHostname({
  hostname,
}: {
  hostname: string;
}): Promise<{ addresses: { address: string; family: number }[] }> {
  const addresses = await lookup(hostname, { all: true });

  return {
    addresses,
  };
}