I'm following this answer How do I get the mx records for a domain from *nix command line? but every time I get an error:
;; connection timed out; no servers could be reached
Can anyone help to sort out this issue?
Thanks in advance.
I'm following this answer How do I get the mx records for a domain from *nix command line? but every time I get an error:
;; connection timed out; no servers could be reached
Can anyone help to sort out this issue?
Thanks in advance.
That message occurs when dig/host/nslookup cannot get a response from the DNS servers configured for the system ( whatever is in /etc/resolv.conf). Basically: DNS isn't working at all on singhal right now.
You might (very dependent on a lot of local network considerations) be able to get a result from Google's own DNS servers, e.g.:
dig -t MX google.com @8.8.8.8
I had the same issue after setting up a mail server on a VPS. I first noticed it after an email hard bounced with
Diagnostic-Code: smtp; 450 4.7.1 Client host rejected: cannot find your reverse hostname, [XXX.XXX.XXX.XXX]: retry timeout exceeded
I checked with host XXX.XXX.XXX.XXX
on my server's IP address and got the same reply as OP :
;; connection timed out; no servers could be reached
Same with nslookup XXX.XXX.XXX.XXX
:
** server can't find XXX.XXX.XXX.XXX.in-addr.arpa: SERVFAIL
I couldn't find much information on how to set it up, everything seemed find on the server side, so I asked my VPS provider, and they acknowledged that it had to be done on their side, which they did. It took about a day for the changes to be propagated, the next day host
and nslookup
found the reverse DNS / PTR.
So tl;dr : fixing this issue is probably the job of your VPS provider.