When cache entry is (halfly) expired we send query to get an update. So
far we were sending all queries using PTR records but for cached domains
it should be A(AAA) instead.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
continue;
}
s->refresh += 50;
- dns_send_question(s->iface, s->entry, TYPE_PTR, 0);
+ if (cache_service_is_host(s)) {
+ dns_send_question(s->iface, s->entry, TYPE_A, 0);
+ dns_send_question(s->iface, s->entry, TYPE_AAAA, 0);
+ } else {
+ dns_send_question(s->iface, s->entry, TYPE_PTR, 0);
+ }
}
uloop_timeout_set(timeout, 10000);