]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: add a new DnsScopeOrigin enum, to delcare the "origin" of a DnsScope explicitly
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Sep 2024 15:49:19 +0000 (17:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 May 2025 20:58:44 +0000 (22:58 +0200)
commit6a198b43828a41bbb85917ef6656b3ecabf6c747
treed6f2380462e976e811b6a546a2d863beffaf63e1
parent18bd6a4d11b1f5e4e5bea1bd5b748f0244d88370
resolved: add a new DnsScopeOrigin enum, to delcare the "origin" of a DnsScope explicitly

This new enum field is supposed to indicate why a DnsScope came to be.
For now it distinguishes two origins: the "global" one (which is what is
configured in resolved.conf) and "link" ones (which are synthesized for
each link).

The field as is is pretty redundant, the same information can be
determined from whether the .link field is set or not.

This is pretty much just preparation for later commits that add
statically configured additional DnsScopes whose origin shall be encoded
with this.
src/resolve/resolved-dns-scope.c
src/resolve/resolved-dns-scope.h
src/resolve/resolved-link.c
src/resolve/resolved-manager.c
src/resolve/test-dns-query.c
src/resolve/test-dns-zone.c