services/dns/Configuration.md
... ...
@@ -291,7 +291,28 @@ Add a "Conditional Forward" (de: "Bedingte Weiterleitung") for each of "dn42", "
291 291
292 292
## systemd-resolved
293 293
294
-If you are using systemd-networkd and systemd-resolved in a version later then v240 you can set up split DNS by adding the dn42 anycast servers to a interface:
294
+If you are using a systemd-resolved version later than v258, you can set up a [DNS Server Delegation](https://www.freedesktop.org/software/systemd/man/latest/systemd.dns-delegate.html), to delegate dn42 domain resolution to the anycast servers:
295
+
296
+```
297
+# /etc/systemd/dns-delegate.d/dn42.dns-delegate
298
+[Delegate]
299
+# configure dn42 anycast servers
300
+DNS=fd42:d42:d42:54::1
301
+DNS=172.23.0.53
302
+DNS=fd42:d42:d42:53::1
303
+DNS=172.20.0.53
304
+
305
+# configure all relevant dn42 domains as route-only domains
306
+Domains=~dn42
307
+Domains=~20.172.in-addr.arpa
308
+Domains=~21.172.in-addr.arpa
309
+Domains=~22.172.in-addr.arpa
310
+Domains=~23.172.in-addr.arpa
311
+Domains=~10.in-addr.arpa
312
+Domains=~d.f.ip6.arpa
313
+```
314
+
315
+If you are using a systemd-networkd and systemd-resolved version later than v240, you can set up split DNS by adding the dn42 anycast servers to an interface:
295 316
296 317
```
297 318
[Match]