]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-conf.c
Revert "resolved: filter out our own stub resolvers when parsing servers"
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Feb 2022 14:45:59 +0000 (15:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 16 Feb 2022 21:20:10 +0000 (22:20 +0100)
commit281df579a725188cf46d420edd6ea2415c8b925e
treee97134ea35c63899928c56bef5079e7b45baa994
parent5d11af60ac997606269385bcfb0ec5905fc01c38
Revert "resolved: filter out our own stub resolvers when parsing servers"

This reverts commit 0ad4efb14beea9148838a0d974821e3b98cafc47.

See
https://github.com/systemd/systemd/pull/20559#issuecomment-1028011030
for reasoning. Quoting:

> I think it should be OK to advertise extra stub listeners to local
> clients, but you prohibit this now. i.e. there are two different
> concepts here, and we shouldn't mix them up:
>
> 1. tracking configured dns servers and advertise them to local programs
> 2. actually using them ourselves
>
> I am pretty sure that our own stubs are OK for 1 but not OK for 2,
> hence we should filter at the time of use not at the time of parse.
src/resolve/resolved-conf.c
src/resolve/resolved-conf.h
src/resolve/resolved-manager.c
src/resolve/resolved-manager.h
src/resolve/resolved-resolv-conf.c