When I try to run any program of Node.js in my machine it give this error, I tried using nodemon to see if it works using nodemon but it does not work. I have check and the code is working my other machines but not this one for some reason.
Error:
node:internal/dns/promises:293
this.reject(new DNSException(err, this.bindingName, this.hostname));
^
Error: querySrv ENOTFOUND _mongodb._tcp.********
at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:293:17) {
errno: undefined,
code: ‘ENOTFOUND’,
syscall: ‘querySrv’,
hostname: ‘************’
}
Node.js v22.5.1