Comments (3)
Thanks for contributing to mintnanny.
This isn't an issue that can be solved in mintnanny. Programs that consult the /etc/hosts file, which is what mintnanny uses to block domain names, will immediately after adding a domain to the block list see this change. Like if you try a ping or wget on a blocked domain you see it resolves to localhost (127.0.0.1). As such mintnanny is working correctly and there is no DNS cache to purge.
Some programs keep their own runtime DNS cache, like your web browser probably. You will most likely have to restart the web browser to clear its runtime DNS cache.
Linux Mint uses dnsmasq to correctly handle DNS requests when connecting to a VPN. dnsmasq by default runs in non-caching mode (--cache-size=0
) but it also runs without reading the hosts file (--no-hosts
). That means that programs that don't consult the /etc/hosts file will still be able to resolve the domain's IP address. For example with the dig blockeddomain.com
command. That's not something that can be resolved in mintnanny.
from mintnanny.
I was thinking more in terms that Mintnanny would have to have an additional function of flushing the DNS cache as well as managing the blocked list. Otherwise I can just as readily SSH into the system and run a command or script to switch out hosts files, then run a "killall <browser name" to clear it's own route information. Actually would work better at the router itself, but home routers are horribly inflexible, no dynamic reconfiguration there.
from mintnanny.
Otherwise I can just as readily SSH into the system and run a command or script to switch out hosts files, then run a "killall <browser name" to clear it's own route information.
That doesn't solve that programs that don't consult the /etc/hosts file will still be able to resolve IP addresses of blocked domains.
from mintnanny.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mintnanny.