diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-30 19:34:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-30 19:34:50 +0200 |
commit | 57f5ad3149b604d07816da61e6aa7dcf1cc56b64 (patch) | |
tree | 5fbc41a68e175c84569203ef64fdcb1b730d6710 /src/resolve/resolved-dns-zone.c | |
parent | fcf57f9cf706ff5be2b5e6d41b2ac48e3e98467b (diff) |
resolved: properly set TTL in SOA records
Diffstat (limited to 'src/resolve/resolved-dns-zone.c')
-rw-r--r-- | src/resolve/resolved-dns-zone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-dns-zone.c b/src/resolve/resolved-dns-zone.c index b51f503df8..99ea420ff4 100644 --- a/src/resolve/resolved-dns-zone.c +++ b/src/resolve/resolved-dns-zone.c @@ -275,7 +275,7 @@ int dns_zone_lookup(DnsZone *z, DnsQuestion *q, DnsAnswer **ret_answer, DnsAnswe if (k < 0) return k; if (k == 0) - r = dns_answer_add_soa(soa, DNS_RESOURCE_KEY_NAME(q->keys[i])); + r = dns_answer_add_soa(soa, DNS_RESOURCE_KEY_NAME(q->keys[i]), LLMNR_DEFAULT_TTL); else r = dns_answer_add(answer, j->rr); if (r < 0) @@ -292,7 +292,7 @@ int dns_zone_lookup(DnsZone *z, DnsQuestion *q, DnsAnswer **ret_answer, DnsAnswe } } else { if (hashmap_get(z->by_name, DNS_RESOURCE_KEY_NAME(q->keys[i]))) { - r = dns_answer_add_soa(soa, DNS_RESOURCE_KEY_NAME(q->keys[i])); + r = dns_answer_add_soa(soa, DNS_RESOURCE_KEY_NAME(q->keys[i]), LLMNR_DEFAULT_TTL); if (r < 0) return r; } |