print ttl when receiving a PTR record
[project/mdnsd.git] / 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);