deno icon indicating copy to clipboard operation
deno copied to clipboard

Bug: `dns.lookupService` is not a function

Open marvinhagemeister opened this issue 4 months ago • 0 comments

The node:dns module exports a .lookupService() function that we seem to be missing. See https://nodejs.org/api/dns.html#dnslookupserviceaddress-port-callback

Steps to reproduce:

Run this snippet:

import dns from "node:dns";
dns.lookupService("127.0.0.1", 22, (err, hostname, service) => {
  console.log(hostname, service);
  // Prints: localhost ssh
});

Version: Deno 2.0.0

marvinhagemeister avatar Oct 16 '24 09:10 marvinhagemeister