]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
policy: fix generated SOA RR so it can be cached
authorPetr Špaček <petr.spacek@nic.cz>
Thu, 25 Jan 2018 11:46:53 +0000 (12:46 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Thu, 25 Jan 2018 16:35:39 +0000 (17:35 +0100)
commitbe3ad43c2dbd377b30fe693714bb9b795c318cab
tree73670ec92b15ea6a88f9d100035303d2bbe0ebfb
parentb04432bfc35915c7378aa1ab7f59ea2a3e8c6012
policy: fix generated SOA RR so it can be cached

RFC 6303 section 3 explains that

   The SOA RR is needed to support negative caching [RFC2308] of name
   error responses and to point clients to the primary master for DNS
   dynamic updates.

Now SOA RR owner name matches query name so it can be cached.
Using zone name as owner would be more difficult so it is left for
further optimizations.

I've verified that nsupdate correctly determines that master name
does not exist and stops update process.
modules/policy/policy.lua