You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/06/23 22:42:25 UTC

[GitHub] [trafficserver] elsloo opened a new issue #7988: HostDB does not properly cache negative responses

elsloo opened a new issue #7988:
URL: https://github.com/apache/trafficserver/issues/7988


   Currently, it appears that at the very least, the no answer, no error, implicit negative response from an authoritative DNS server is not cached by HostDB. These answers are also known as a `NODATA` response per RFC 2308, section 2.2, found here: https://datatracker.ietf.org/doc/html/rfc2308#section-2.2
   
   At a minimum, HostDB should implement negative caching for this case, but other cases, such as `NXDOMAIN` should also be implemented if missing. Ideally the existing implementation would be analyzed against the negative caching RFC linked above, and any gaps would be rectified.
   
   Without the ability to cache negative answers such as the `NODATA` response, two negative things occur:
   
   1. HostDB will hammer its configured caching resolver with queries that cannot be satisfied
   2. Response time of incoming requests may be affected depending on how ATS is configured; for example, when client address family matching is enabled via `proxy.config.hostdb.ip_resolve` and the upstream host lacks an `AAAA` record.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] SolidWallOfCode commented on issue #7988: HostDB does not properly cache negative responses

Posted by GitBox <gi...@apache.org>.
SolidWallOfCode commented on issue #7988:
URL: https://github.com/apache/trafficserver/issues/7988#issuecomment-868743007


   I'll take a look at this once the current HostDB changes land. It shouldn't be too much work to fix this in the new implementation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] elsloo commented on issue #7988: HostDB does not properly cache negative responses

Posted by GitBox <gi...@apache.org>.
elsloo commented on issue #7988:
URL: https://github.com/apache/trafficserver/issues/7988#issuecomment-867741165


   Note: HostDB does have the parameter `proxy.config.hostdb.fail.timeout` which provides some semblance of negative caching. This might suffice for most use cases.
   
   That said, in an ideal world, this setting would follow the ncache TTL in the SOA record instead of using a static value such that HostDB honors what the domain administrator has configured for a given domain. Perhaps we allow one to specify whether we use a static value or honor the value in the SOA, and, even better if such a parameter is overridable and reloadable.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org