1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
From: Michael Biebl <biebl@debian.org>
Date: Wed, 20 Jan 2021 19:44:21 +0100
Subject: Use resolvectl instead of systemd-resolve
Forwarded: https://github.com/jonathanio/update-systemd-resolved/pull/91
The latter is a deprecated compat symlink.
---
README.md | 4 ++--
run-tests | 4 ++--
update-systemd-resolved | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index ba6f559..d1df277 100644
--- a/README.md
+++ b/README.md
@@ -314,10 +314,10 @@ interfaces.
### DNSSEC Issues
```shell
-$ systemd-resolve eu-central-1.console.aws.amazon.com
+$ resolvectl eu-central-1.console.aws.amazon.com
eu-central-1.console.aws.amazon.com: resolve call failed: DNSSEC validation failed: no-signature
# or
-$ systemd-resolve eu-central-1.console.aws.amazon.com
+$ resolvectl eu-central-1.console.aws.amazon.com
eu-central-1.console.aws.amazon.com: resolve call failed: DNSSEC validation failed: incompatible-server
```
diff --git a/run-tests b/run-tests
index d2c5d7d..daefb15 100755
--- a/run-tests
+++ b/run-tests
@@ -91,8 +91,8 @@ function ip {
" 100\n link/none"
}
-function systemd-resolve {
- _log "systemd-resolve called with: ${@}"
+function resolvectl {
+ _log "resolvectl called with: ${@}"
}
function logger {
diff --git a/update-systemd-resolved b/update-systemd-resolved
index 1452e1a..4c63bc7 100755
--- a/update-systemd-resolved
+++ b/update-systemd-resolved
@@ -421,7 +421,7 @@ main() {
"$script_type" "$link" "$if_index" "$@" || return 1
# Flush the DNS cache
- systemd-resolve --flush-caches
+ resolvectl flush-caches
fi
}
|