bind: Set default forwarder as systemd-resolved

Closes: #1196.

- systemd-resolved always contains the current list of known DNS servers taken
from systemd-networkd, network-manager, or by other means. It also has fallback
DNS servers. Forwarding requests to it allows correct and failsafe way to reach
external DNS servers.

Tests:

- Freshly install bind and notice that the fowarders list is set to 127.0.0.53.

- Install without the patch. Apply patch. Restart service. bind is upgraded to
new version and forwarder is set to 127.0.0.53 if it is blank. Otherwise, it
remains as is.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2024-09-04 11:48:36 +03:00
1 parent 96b052432a
commit 939f122fb5
2 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ class BindApp(app_module.App):
app_id = 'bind'
_version = 3
_version = 4
def __init__(self) -> None:
"""Create components for the app."""