From: John Crispin Date: Thu, 4 Sep 2014 19:01:48 +0000 (+0200) Subject: print ttl when receiving a PTR record X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa35f31bdb084f12258fb644812889ac977c0630;p=oweals%2Fmdnsd.git print ttl when receiving a PTR record Signed-off-by: John Crispin --- diff --git a/cache.c b/cache.c index af6cbba..2b5ca54 100644 --- a/cache.c +++ b/cache.c @@ -239,7 +239,7 @@ cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struc return; } - DBG(1, "A -> %s %s %s\n", dns_type_string(a->type), name, rdata_buffer); + DBG(1, "A -> %s %s %s ttl:%d\n", dns_type_string(a->type), name, rdata_buffer, a->ttl); rdlength = strlen(rdata_buffer);