diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-03-15 22:14:43 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-03-15 23:41:25 +0100 |
commit | 567aa5c87b4a177cd4a6ef3ed8d6814839a4ffd8 (patch) | |
tree | b7a42962aee6500f1cf18159e65ab0f44d535bd3 /src/resolve/resolved-dns-answer.c | |
parent | resolved: use DNS_ANSWER_MASK_SECTIONS where appropriate (diff) | |
download | systemd-567aa5c87b4a177cd4a6ef3ed8d6814839a4ffd8.tar.xz systemd-567aa5c87b4a177cd4a6ef3ed8d6814839a4ffd8.zip |
resolved: show TTLs in answer dump
Diffstat (limited to '')
-rw-r--r-- | src/resolve/resolved-dns-answer.c | 5 |
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); |