Repository navigation
Conversation
… question This effectively reverts 6993d26. Fixes systemd#9771.
|
I am not a DNS expert, so I am not sure that this is a right way to fix the issue. But at least, this solves #9771. |
|
Based on a quick look of the commit, it seems the code might be making a wrong assumption about the DS record. This record lives at the parent, not the child. So a DS query for amazon.com gives a SOA of .com and not amazon.com in its NXDOMAIN reply. It appears the code might be thinking that is wrong because it asked about amazon.com and not .com |
|
@letoams Thank you for the comment and sorry for late reply. Unfortunately, I do not have enough knowledge to improve or fix the point you explained... @poettering Please reject this if it is not a correct way to fix the issue. This may be just a workaround for the issue. |
|
Hmmm... Need some further review? Based on my understanding (upon my quick review), the change made by @yuwata is to just ignore Nevertheless, @letoams's point that a |
|
Hmm, so this change means we won't attempt to request the RRs necessary to authenticate the SOAs on negative replies, thus we have no TTL info for negative caching (because for negative replies the TTL info is found in the SOAs). Which isn't horrible, but of course, we'd like to do negative caching and hence not ideal. I have prepped #11194 now, with an alternative fix. We'll still request the RRs necessary to authenticate SOAs on negative reply, but are a bit less eager and only request those which actually could contain TTL info for us, i.e. parent domains in some form or another. Why does this matter? the transaction logic has a cyclic dep detector: when we request some RR for authenticating some other RR and then that one requests another one, and so on, and this is eventually comes back to the original RR we have a problem and hence detect that and handle it. This can happen if we are too eager to authenticate. With the tighter check we can be sure we won't end up in a cyclic dep, since we'll only authenticate SOAs "upwards", and all is good. Closing this, I hope this is OK. |
This effectively reverts 6993d26.
Fixes #9771.