summaryrefslogtreecommitdiffstats
path: root/src/resolve/resolved-dns-answer.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-03-15 22:14:43 +0100
committerLennart Poettering <lennart@poettering.net>2021-03-15 23:41:25 +0100
commit567aa5c87b4a177cd4a6ef3ed8d6814839a4ffd8 (patch)
treeb7a42962aee6500f1cf18159e65ab0f44d535bd3 /src/resolve/resolved-dns-answer.c
parentresolved: use DNS_ANSWER_MASK_SECTIONS where appropriate (diff)
downloadsystemd-567aa5c87b4a177cd4a6ef3ed8d6814839a4ffd8.tar.xz
systemd-567aa5c87b4a177cd4a6ef3ed8d6814839a4ffd8.zip
resolved: show TTLs in answer dump
Diffstat (limited to '')
-rw-r--r--src/resolve/resolved-dns-answer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resolve/resolved-dns-answer.c b/src/resolve/resolved-dns-answer.c
index 5fbff81c25..a032ac157e 100644
--- a/src/resolve/resolved-dns-answer.c
+++ b/src/resolve/resolved-dns-answer.c
@@ -879,9 +879,8 @@ void dns_answer_dump(DnsAnswer *answer, FILE *f) {
}
fputs(t, f);
-
- if (item->ifindex != 0 || item->rrsig || item->flags != 0)
- fputs("\t;", f);
+ fputs("\t;", f);
+ fprintf(f, " ttl=%" PRIu32, item->rr->ttl);
if (item->ifindex != 0)
fprintf(f, " ifindex=%i", item->ifindex);