Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBR with dnsmasq-full caching issue #24

Open
fritz-fritz opened this issue Jul 1, 2024 · 1 comment
Open

PBR with dnsmasq-full caching issue #24

fritz-fritz opened this issue Jul 1, 2024 · 1 comment

Comments

@fritz-fritz
Copy link

I have an issue that comes up from time to time where the pbr dnsmasq-full with nftsets seems to be caching dns lookups despite the setting in dnsmasq.

The issue becomes apparent in particular when used with for example nextdns. I might come accross a site that is blocked and the NXDOMAIN response gets cached by PBR. I then unblock at nextdns and the router/host dnsmasq instance can pull the record correctly, but the router will still respond to clients with NXDOMAIN indefinitely until I restart the pbr service (not the dnsmasq service).

I presume PBR is starting it's own instance of dnsmasq? Wouldn't it be better to default to no caching and leave the configuration to the upstream dnsmasq instance?

I might be incorrect here in what is happening and I have tried passing arguments in my uci config to disable the cache in pbr but thought I'd raise the issue here in case you could help.

It's an issue that doesn't typically come up as a problem, but when it does. I have to ssh into my router which is less than ideal.

@stangri
Copy link
Owner

stangri commented Jul 2, 2024

I presume PBR is starting it's own instance of dnsmasq?

It doesn't.

I might be incorrect here in what is happening and I have tried passing arguments in my uci config to disable the cache in pbr but thought I'd raise the issue here in case you could help.

I suspect so. FYI: restarting/reloading pbr may cause the dnsmasq to be restarted as well, but pbr has no dns resolution cache of its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants