On Sun, 15 Nov 2020 at 20:22, Tom H <tomh0665@gmail.com> wrote:
On Sun, Nov 15, 2020 at 10:15 AM Anthony F McInerney
<afm404@gmail.com> wrote:


> Can someone explain why systemd-resolved needs to symlink
> /etc/resolv.conf to 4(or more) different places, instead of just
> having those 'detected things' as options in
> /etc/systemd/resolved.conf ?

The different symlinks/files provide different options.
 
Yes I was well aware of that, most people who had to read the man page to find out about the magic symlink and which one had broken their system also know this now too.

I doubt that anyone would want resolved to create/modify the symlinks
depending on "/etc/systemd/resolved.conf".


Which indeed, was my point, why would "anyone want resolved to create/modify the symlinks" or even BE one, instead of just a static file, that some other random app doesn't claim ownership of with a symlink, that does some 'magic' with enforce options, you'll know about once you read the man page.