Skip to content

/etc/resolv.conf should point to /run/systemd/resolve/stub-resolv.conf #285

@f0o

Description

@f0o

Current situation
currently /etc/resolv.conf points to /run/systemd/resolve/resolv.conf which basically merges all DNS entries from all links and configs into 1 file regardless of hierarchy, caching, routing or other settings.

Impact
Routed Domains become inherently unsupported as well as systemd-resolved's caching and other advanced features

Ideal future situation
By using /run/systemd/resolve/stub-resolv.conf you effectively use systemd-resolved's stub resolver which leverages all features including caching and routed domains instead.

Implementation options
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Additional information
NOTE: Docker/Rkt will need to point to a different resolv.conf (namely /run/systemd/resolve/resolv.conf) as the stubresolver does not exist for containers. This is in accordance to the documentation (systemd+docker).

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementEnhancement of an existing component.

    Type

    No type

    Projects

    Status

    🪵Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions