[Dnsmasq-discuss] /etc/resolv.conf polling limitation
Preston Crow
pc-dnsmasq at crowcastle.net
Tue Mar 22 01:42:48 UTC 2022
I just ran into an interesting issue:
In my config, I set: resolv-file=/etc/resolv.conf.upstream
If I edit that file, I instantly see dnsmasq reload things as expected
with various log messages. That's good.
However, in my case, /etc/resolv.conf.upstream is a symlink. If I
change the symlink to point to a different file, dnsmasq doesn't
notice. I suspect it's using inotify to have the kernel tell it if the
file is changed, and it isn't checking for a symlink that also needs to
be watched.
I'm not sure if this qualifies as a bug. If this is to be defined as
the expected behavior, then I would suggest adding a note to the
documentation on the polling pointing out that changes to symlinks won't
be noticed.
More information about the Dnsmasq-discuss
mailing list