dnsmasq should map domain to 0.0.0.0
bokunodev opened this issue · comments
Is your feature request related to a problem? Please describe:
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Android chrome browser will retry with different dns provider (google), if dns server from the network response with NXDOMAIN, make dns based adblock uneffective.
Describe the solution you'd like:
A clear and concise description of what you want to happen.
address=/example.com/0.0.0.0
instead of
address=/example.com/
Describe alternatives you've considered:
A clear and concise description of any alternative solutions or features you've considered.
My current solution is by appending 0.0.0.0
to each line, manually using sed
Additional context:
Add any other context about the feature request here.
I didn't use hblock
to manage blocklist.
It is not sustainable to provide pre-built configuration files that satisfy all use cases, fortunately hBlock is quite flexible and in your specific scenario the following command would generate the dnsmasq configuration you are looking for:
hblock -T 'address=/%D/%R' -R '127.0.0.1' -O ./hblock_dnsmasq.conf