print ttl when receiving a PTR record
authorJohn Crispin <blogic@openwrt.org>
Thu, 4 Sep 2014 19:01:48 +0000 (21:01 +0200)
committerJohn Crispin <blogic@openwrt.org>
Thu, 4 Sep 2014 19:01:48 +0000 (21:01 +0200)
Signed-off-by: John Crispin <blogic@openwrt.org>
cache.c

diff --git a/cache.c b/cache.c
index af6cbbafb341435d53d98134800d53690aeb7716..2b5ca541d3216f4e34aac837f5102722ef4857fe 100644 (file)
--- 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);