Version
deno 2.5.6 (stable, release, x86_64-unknown-linux-gnu)
v8 14.0.365.5-rusty
typescript 5.9.2
Steps to reproduce
- Create file
test.mjs with the following content:
import dns from 'node:dns';
dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
console.log(hostname, service);
});
- Run the file like
deno test.mjs.
Expected Behaviour
localhost ssh
Actual Behaviour
error: Uncaught (in promise) TypeError: dns.lookupService is not a function