mirror of
https://github.com/systemd/systemd.git
synced 2024-12-17 06:03:35 +08:00
resolved: bypass local cache when we issue a transaction for verification purposes
This commit is contained in:
parent
cd1b20f90a
commit
4d926a69bc
@ -465,6 +465,10 @@ int dns_transaction_go(DnsTransaction *t) {
|
||||
t->cached = dns_answer_unref(t->cached);
|
||||
t->cached_rcode = 0;
|
||||
|
||||
/* Check the cache, but only if this transaction is not used
|
||||
* for probing or verifying a zone item. */
|
||||
if (set_isempty(t->zone_items)) {
|
||||
|
||||
/* Before trying the cache, let's make sure we figured out a
|
||||
* server to use. Should this cause a change of server this
|
||||
* might flush the cache. */
|
||||
@ -484,6 +488,7 @@ int dns_transaction_go(DnsTransaction *t) {
|
||||
dns_transaction_complete(t, DNS_TRANSACTION_FAILURE);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
log_debug("Cache miss!");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user