Thanks for looking it up, but the dnsmasq.servers file is being passed to dnsmasq as servers-file (a kind of conf-file).
Simple-adblock: fast, lean and fully uci/luci configurable AdBlocking
I would still suspect some config remnants in dhcp config file pointing a addnhosts file at a servers-file. But that’s just my own speculation from reading her logfile excerpt.
Can you post output of
uci show dhcp.@dnsmasq
Well to start, I go by she, and not he.
Upon reviewing my main dnsmasq config again, these two lines immediately caught my attention, especially after taking note of what @stangri just said above when using simple-adblock in
dnsmasq.servers mode (and double checking what mode I was running simple-adblock in).
~# uci show dhcp.@dnsmasq dhcp.cfg01411c.addnhosts='/var/run/simple-adblock/dnsmasq.servers' dhcp.cfg01411c.serversfile='/var/run/simple-adblock/dnsmasq.servers'
At some point, perhaps a month or two ago maybe, when I was making some changes to dnsmasq on my router, I noticed that under the config section for the resolv and hosts files, the additional hosts files setting was unpopulated, and I given I have used the additional hosts method before, I guess I inadvertently got things mixed up, and readded it when I shouldn't have. So I added that setting back, thinking I had mistakenly removed it before, basically.
Since removing that duplicate config entry, I am no longer getting the error spam when dnsmasq restarts. Probably safe to remove my hacky workaround that is the related local startup entry of
/etc/init.d/simple-adblock dl, too.
Downside of tinkering and switching between different operating modes and being a very forgetful person at times, I guess
Looks like @dave14305 was right on the money!
I am using simpleadblock on a device (AVM FRITZ!Box 3370) with a built-in DSL modem for the connection to my Internet provider.
The DSL modem starts via
Since simpleadblock uses
/etc/rc.d/S94simple-adblock, the "time to internet connection" is (very) long - mainly because the init system waits for S94simple-adblock to time out.
Would it be possible to move simpleadblock to a higher number by default (S98 or S99)?
Sebastian, you could do that by modifying the value in the init script. Do you need instructions?
I've come here from AGH and am finding this to be a much more elegant set up, so thanks! Two questions (or maybe feature requests as I may already know the answers):
- Is there a way to get any stats? eg which client made which requests? I presume this is not the concern of SAB, so what are other people doing?
- Is there a way to pause SAB temporarily? I presume that requires at least a config change and restart of dnsmasq...
I currently just rename the init scripts and use numbers that work better in my setup. Is that what you meant "modifying the value in the init script"? If there is an other/better way, please let me know!
The drawback of this (manual) approach is that I need to re-do this every time I do a version upgrade of the OpenWRT firmware. My question was therefore aiming towards a change in the SimpleAdblock package itself, so that the DEFAULT number of the SimpleAdblock script is higher. Would you be open for such a change in the package?
I believe the correct way would be to disable auto-start (say from WebUI Startup page or thru CLI), then change the START value in the init script then enable auto-start again.
Good morning, have been checking system log for last 48 hrs and seeing some weird requests.
Sat Jun 3 15:18:07 2023 user.notice simple-adblock : Reloading DNSMASQ [✓]
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zytpirwai.net
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zyrtec.4.p2l.info
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zyrtec.3.p2l.info
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zyrtec.1.p2l.info
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zymerget.win
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zyban.1.p2l.info
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zyban-store.shengen.ru
Sat Jun 3 14:38:23 2023 daemon.info dnsmasq: using local addresses only for domain zy16eoat1w.com
Any suggestions on what to do?
Those are messages showing dnsmasq loading the blocklist, not related to any incoming query. They indicate that dnsmasq will not forward queries for those domains to any upstream DNS servers.