]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-cache.c
resolved: synthesize NODATA cache results when we find matching NSEC RRs
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Dec 2015 22:59:19 +0000 (23:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Dec 2015 23:26:58 +0000 (00:26 +0100)
commit37da893166f39b5fb39b460baa41398847ff2c63
tree3b8f202cdcae489cb5291953077ecf5d6260a7b1
parent8730bccfc59fe507bd3e0a3abcf411b497ac4f0e
resolved: synthesize NODATA cache results when we find matching NSEC RRs

If we have a precisely matching NSEC RR for a name, we can use its type
bit field to synthesize NODATA cache lookup results for all types not
mentioned in there.

This is useful for mDNS where NSEC RRs are used to indicate missing RRs
for a specific type, but is beneficial in other cases too.

To test this, consider these two lines:

systemd-resolve-host -t NSEC nasa.gov
systemd-resolve-host -t SRV nasa.gov

The second line will not result in traffic as the first line already
cached the NSEC field.
src/resolve/resolved-dns-cache.c