Repository navigation
Support additional systemd-resolved options / org.freedesktop.resolve1 DBUS endpoints - #110
Merged
Merged
Conversation
tomeon
force-pushed
the
support-additional-dbus-calls
branch
3 times, most recently
from
December 11, 2022 01:19
fd66867 to
1fa7301
Compare
|
Ping. Also it would be nice if DOMAIN accepted ip#domain format. That would enable full DNS-over-TLS support. At least for systemd-resolved users. |
This was referenced Jul 13, 2023
Closed
tomeon
force-pushed
the
support-additional-dbus-calls
branch
from
July 18, 2023 15:27
1fa7301 to
a90c52a
Compare
tomeon
force-pushed
the
support-additional-dbus-calls
branch
2 times, most recently
from
July 26, 2023 21:02
954ef98 to
e698f76
Compare
tomeon
marked this pull request as ready for review
July 26, 2023 21:04
tomeon
force-pushed
the
support-additional-dbus-calls
branch
5 times, most recently
from
August 4, 2023 14:59
a29064e to
e0cfd0a
Compare
to prevent breaking `dhcp-option` parsing logic.
BREAKING CHANGE: we now convert the string "dhcp-option OPT-NAME
OPT-VALUE" into the three-tuple `("dhcp-option", "OPT-NAME",
"OPT-VALUE")` by splitting on whitespace; previously, we split on single
space characters.
BREAKING CHANGE: we now treat the directive "dhcp-option OPT-NAME" (i.e.
no OPT-VALUE) as signifying `OPT-VALUE == ""` (that is, the option value
is the empty string). Previously, we set `OPT-VALUE` to the same value
as `OPT-NAME`.
by (a) merely declaring `dns_sec` in main, but not setting `dns_sec=""`, and (b) setting `dns_sec=""` in `process_dnssec` when we see `dhcp-option DNSSEC default`.
instead of clearing a hardcoded list of six vars.
by not doing separate bookkeeping on the number of specifications versus the list of DBus arguments.
Namely, these:
1. SetLinkDefaultRoute
2. SetLinkLLMNR
3. SetLinkMulticastDNS
4. SetLinkDNSOverTLS
5. SetLinkDNSSECNegativeTrustAnchors
which facilitates better support for DNS-over-TLS.
for generating DNS-over-TLS PKI assets
for regenerating the DNSSEC root anchors specification.
around (a) the results of queries made with `dig` and (b) the state of systemd-resolved before and after attempting to resolve names over the VPN link.
as the text was getting too large to fit comfortably in a table.
tomeon
force-pushed
the
support-additional-dbus-calls
branch
from
August 4, 2023 15:14
e0cfd0a to
97304f8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #60; covers/obviates #92 and #99.
Marked as a draft because it is based on #100 (and also because it is not finished :).
The idea is to support additional
systemd-resolvedoptions by exposing newdhcp-optiontypes that triggerorg.freedesktop.resolve1DBUS calls.New
dhcp-optiontypes:FLUSH-CACHESTakes no argument.
Replaces the use of
resolvectl flush-caches, and allows the user to control whether caches are flushed (current behavior is to flush unconditionally).RESET-SERVER-FEATURESTakes no argument.
resolvectl --help:RESET-STATISTICSTakes no argument.
resolvectl --help:DEFAULT-ROUTETakes a boolean argument.
man systemd.network, section onDNSDefaultRoute:DNS-OVER-TLSTakes a boolean argument, or "opportunistic".
man resolved.conf:LLMNRTakes a boolean argument, or "resolve".
man resolved.conf:MULTICAST-DNSTakes a boolean argument, or "resolve".
DNSSEC-NEGATIVE-TRUST-ANCHORSTakes a single domain. May be specified multiple times in order to add multiple domains as negative trust anchors.
man resolved.conf:Needs Feedback
dhcp-optionnamesPerhaps
update-systemd-resolved-specific options should be flagged as such with (say) a special prefix? For instance, instead of justLLMNR, what aboutSYSTEMD-RESOLVED-LLMNRorRESOLVE1-LLMNR, or similar?Argument validation
This changeset includes some light validation of arguments supplied to the various
dhcp-options. Maybe it would be better to just punt toorg.freedesktop.resolve1to raise errors when appropriate?TODO