Re: Clear cache for dnsmasq when DBus is used
Daniel Letkiewicz
Thu Sep 12 08:41:05 2019
Great! Thank you Roy!
On Sat, Sep 7, 2019 at 11:09 AM Roy Marples <roy@xxxxxxxxxxxx> wrote:
> On 01/09/2019 12:55, Daniel Letkiewicz wrote:
> > I agree, this is more a design decision. Regardless whether dbus is used
> > or not, when a server is removed the cache should be cleared IMHO.
> > I'm not sure if it should be cleared by dnsmasq or by resolvconf.
> >
> > Looking at the code, there is a flag "changed" which is set to true if
> > there is a difference in config files.
> > When the flag is set to true resolvconf restarts dnsmasq or sends
> > SIGHUP, so the cache is cleared.
> > The problem with using dbus is that the config files are not changed, so
> > the flag is never set to true and SIGHUP is not sent.
> >
> > Anyway, whatever method is the best it would be worth to fix it IMHO. I
> > just send ClearCache as I wrote before to solve this problem for my
> setup.
>
> Fixed here:
>
> https://roy.marples.name/cgit/openresolv.git/commit/?id=08a892a68eda830c7eed6d0a0bfc73ded9e1f228
>
> Thanks
>
> Roy
>
Archive administrator: postmaster@marples.name