Skip to content

dnscrypt-proxy - Do not edit "/usr/lib/systemd/system/dnscrypt-proxy.socket" because an update might overwrite this! #1340

@EyBmY

Description

@EyBmY

https://docs.pi-hole.net/guides/dns/dnscrypt-proxy/

In this Pi-hole installation documentation, the user is told to edit /usr/lib/systemd/system/dnscrypt-proxy.socket and make the following changes for dnscrypt-proxy listening to Pi-hole's DNS requests:

ListenStream=127.0.0.1:5053
ListenDatagram=127.0.0.1:5053

Image

This is a bad idea as this YouTube video about Systemd units shows:

https://youtu.be/Kzpm-rGAXos?t=1240

Any Systemd unit placed in /usr/lib/systemd/system/ was likely placed by installing a package, and will be overwritten if the package receives an update. This will break any configuration the user put there.

Instead the user should be told to either copy /usr/lib/systemd/system/dnscrypt-proxy.socket to /etc/systemd/system/dnscrypt-proxy.socket and make their changes there, where they will take higher priority and not be affected by changes inside /usr/lib/systemd/system/dnscrypt-proxy.socket or use the systemctl edit dnscrypt-proxy.socket command to use an override file.

That way even when DNSCrypt receives an update which changes the Systemd units. The user configuration remains untouched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions