Comment 3 for bug 1765477

Revision history for this message
carl2187 (carl2187) wrote :

Any five second delay in name resolution is most likely caused by this open bug in systemd-resolved:

https://github.com/systemd/systemd/issues/11849

The root cause is a delay when resolved has to downgrade the feature set of its requests to upstream DNS servers. It correctly discovers a compatible feature set, but doesn't implement the discovered feature set until the next new query attempt. The retry logic is supposed to handle this, but the bug is that it goes crazy and retries with a known not working feature set until the max retry counter is hit. Then 5 seconds later, a new attempt is made, and works perfectly, the compatible feature set is used on the first attempt of the new query.