Error: queryTxt ESERVFAIL

i keep getting this error:
Error: queryTxt ESERVFAIL
at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:251:17) {
errno: undefined,
code: ‘ESERVFAIL’,
syscall: ‘queryTxt’,
hostname: ‘
the same code was working this morning and i did not perform any changes.
please help i tried everything i found on the web .

Looks good for me at this time:

# dig +short any
0 0 27017
0 0 27017
0 0 27017

Try a different set of dns servers perhaps.

i dont quiet understand you idea,i am using a m1 mac , i dont know how to change or try different set of dns servers

The error is DNS related. Changing the DNS servers you are using may allow the application to connect.

I’m not familiar with changing dns servers on a mac either, but a quick google should show you.


i changed my dns servers on my mac (i used google dns and also tried opendns but it didn’t work.
when i tested the command you mentioned earlier it says :;; connection timed out; no servers could be reached