mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 17:35:54 +03:00
[GH-ISSUE #321] Feature: systemd-resolved support #112
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mageddo on GitHub (Feb 25, 2023).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/321
Based on request made at #248
🍏 1 => DPS will detect and configure systemd-resolved when available
By reading the same configuration property of resolv.conf (
MG_RESOLVCONFenv), if DPS has all the requirements needed to restart systemd-resolved service it will also restarts the service because it's required to the changes to take effect, if DPS can't do that then it will log as a warning that systemd-resolved files were changed and the command which the user must run to apply the changes (service systemd-resolved restart)🍏 2 => MG_RESOLVCONF will now accept more than one value
They will separated by comma
,DPS will look for each value, try to use it and stops when finds a valid value, some path which is able to configure (an existing path, with the right read and write permissions and parseable by DPS)🍏 3 => The default value of MG_RESOLVCONF will changes to
This way DPS can by default try to configure systemd-resolved on Linux then fallback to resolv.conf. The additional directory
/host/etcwill be useful when running in a docker container and people prefer to mount a entire directory.🍏 4 => Update the docs
❌ 5 => DPS will try workarounds to automatically restart system-resolved when running inside a container
Moved to #329
@mageddo commented on GitHub (Feb 26, 2023):
It's alive at 3.4. I'm using the following command: