]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: refuse queries with no suitable scope
authorRonan Pigott <ronan@rjp.ie>
Thu, 7 Mar 2024 21:27:52 +0000 (14:27 -0700)
committerRonan Pigott <ronan@rjp.ie>
Thu, 7 Mar 2024 22:29:37 +0000 (15:29 -0700)
commit4f2da49fcd333dcd1542278dce5b9642dcdeb984
treebc7a7b6e73be15cd4dfdf6c5f8903c6a09b73451
parent4e17de7feed093ddaebd4fe2cd8a2ad8f0e03d76
resolved: refuse queries with no suitable scope

In some cases there is no configured server to answer a given question,
because all scopes refused the query. In this case we currently return
rcode SERVFAIL.

In dns it is customary for authoritative nameservers to return REFUSED
where the question is outside of their authority. This is better than
SERVFAIL because it informs the client that they aren't likely to get an
answer out of us anytime soon, and either the configuration, or the
query, need to change.

Similar logic invites us to use use the rcode REFUSED on the stub if we
aren't configured with any suitable scope for this question.
src/resolve/resolved-dns-stub.c