dnspq
dnspq copied to clipboard
Unable to send query to OpenDNS servers
The diagnostic tool is unable to send query to OpenDNS server for some reason
# It works with 8.8.8.8 (Google)
$ ./dnspq -s 8.8.8.8 google.com
125.234.54.183 (TTL: 0s, responder 0: 8.8.8.8:53) google.com
# But it doesn't work with OpenDNS
$ ./dnspq -s 208.67.222.222 -s 127.0.1.1 google.com
failed to resolve google.com: No data received from server
# The popular dig command works great
$ dig +short @208.67.222.222 google.com
125.234.55.222
125.234.55.251
125.234.55.231
...
I think there may be a timeout problem. (Then how to increase timeout settings?)
Thanks,
could be timeout (in general dnspq is very impatient ;))
You can try to tweak the timeouts a bit here: https://github.com/grobian/dnspq/blob/master/dnspq.c#L76-L81