Coder Social home page Coder Social logo

Comments (3)

xenopeek avatar xenopeek commented on July 30, 2024

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.

jelabarre59 avatar jelabarre59 commented on July 30, 2024

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.

xenopeek avatar xenopeek commented on July 30, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.