-
Notifications
You must be signed in to change notification settings - Fork 52
DNS query does not do any retries when dns server returned error #66
Comments
what's your resolv.conf, and what is your code? The resolver should drop the configuration in the logs when initialized, can you show those logs? |
Log level must be |
The log is as follows: The kong's error log is as follows: I just saw this pr, which is similar to what I want to express. I wonder if the following code can be modified. if answers.errcode then if answers then |
That is a weird log, did you redact the logs to remove the hostname? the name tried is "..com" which doesn't resolve. Additionally the log snippet you posted above contains What upstream hostname are you trying to resolve? And what is the initial DNS error? |
btw: in the error message Essentially this means that on Kong side everything works as designed. So my guess is that you mis configured your upstream hostname since it has |
@olderwei were you able to resolve this? Another thing that comes to mind: when the UDP reply gets truncated (answer too big), the resolver will fall back on a TCP query. Now this TCP query does not handle retries. See also openresty/lua-resty-dns#40 |
@olderwei any update? |
closing due to no response |
I configured three nameserver in /etc/resolv.conf file. When DNS Server is requested, an error is returned similar to ServFail, lua-resty-dns-client and lua-resty-dns will not retry other DNS Server,Is there a specific reason behind this?
The text was updated successfully, but these errors were encountered: