-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support additional systemd-resolved
options / org.freedesktop.resolve1
DBUS endpoints
#110
Merged
tomeon
merged 21 commits into
jonathanio:master
from
tomeon:support-additional-dbus-calls
Aug 4, 2023
Merged
Support additional systemd-resolved
options / org.freedesktop.resolve1
DBUS endpoints
#110
tomeon
merged 21 commits into
jonathanio:master
from
tomeon:support-additional-dbus-calls
Aug 4, 2023
Conversation
This file contains 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
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
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
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-resolved
options by exposing newdhcp-option
types that triggerorg.freedesktop.resolve1
DBUS calls.New
dhcp-option
types:FLUSH-CACHES
Takes 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-FEATURES
Takes no argument.
resolvectl --help
:RESET-STATISTICS
Takes no argument.
resolvectl --help
:DEFAULT-ROUTE
Takes a boolean argument.
man systemd.network
, section onDNSDefaultRoute
:DNS-OVER-TLS
Takes a boolean argument, or "opportunistic".
man resolved.conf
:LLMNR
Takes a boolean argument, or "resolve".
man resolved.conf
:MULTICAST-DNS
Takes a boolean argument, or "resolve".
DNSSEC-NEGATIVE-TRUST-ANCHORS
Takes a single domain. May be specified multiple times in order to add multiple domains as negative trust anchors.
man resolved.conf
:Needs Feedback
dhcp-option
namesPerhaps
update-systemd-resolved
-specific options should be flagged as such with (say) a special prefix? For instance, instead of justLLMNR
, what aboutSYSTEMD-RESOLVED-LLMNR
orRESOLVE1-LLMNR
, or similar?Argument validation
This changeset includes some light validation of arguments supplied to the various
dhcp-option
s. Maybe it would be better to just punt toorg.freedesktop.resolve1
to raise errors when appropriate?TODO