Discussion:
[Dnsmasq-discuss] NXDOMAIN TTL
Dominik Derigs, DL6ER
2018-02-28 09:40:57 UTC
Permalink
Dear all,

on the dnsmasq man page, I found the following:

*--neg-ttl=<time>*
Negative replies from upstream servers normally contain time-to-live
information in SOA records which dnsmasq uses for caching. If the
replies from upstream servers omit this information, dnsmasq does
not cache the reply. This option gives a default value for
time-to-live (in seconds) which dnsmasq uses to cache negative
replies even in the absence of an SOA record.

However, when specifying a local record using, e.g.,
"server=/nxdomaintest.com/" and querying this domain from dnsmasq, it
seems like the clients aren't getting a TTL value with this A/AAAA query.

Is it possible to have dnsmasq sending out a TTL for locally defined
NXDOMAINs ?

Best regards,
Dominik
Simon Kelley
2018-03-06 23:20:41 UTC
Permalink
Post by Dominik Derigs, DL6ER
Dear all,
*--neg-ttl=<time>*
Negative replies from upstream servers normally contain time-to-live
information in SOA records which dnsmasq uses for caching. If the
replies from upstream servers omit this information, dnsmasq does
not cache the reply. This option gives a default value for
time-to-live (in seconds) which dnsmasq uses to cache negative
replies even in the absence of an SOA record.
However, when specifying a local record using, e.g.,
"server=/nxdomaintest.com/" and querying this domain from dnsmasq, it
seems like the clients aren't getting a TTL value with this A/AAAA query.
Is it possible to have dnsmasq sending out a TTL for locally defined
NXDOMAINs ?
Best regards,
Dominik
Tricky to do. To provide the TTL information, dnsmasq would have to
include an SOA record in the NXDOMAIN reply. That contains lots of
information which dnsmasq doesn't have access to, and which it can't
easily fake.


Cheers,


Simon.

Loading...