GithubHelp home page GithubHelp logo

shoenig / donutdns Goto Github PK

View Code? Open in Web Editor NEW
76.0 76.0 5.0 292 KB

Block ads, trackers, and malicious sites with donutdns - simple alternative to pihole. Run as a docker container, standalone executable or core DNS plugin. Supply custom domain block/allow lists in addition to builtin lists maintained by the ad-blocking community.

License: BSD 3-Clause "New" or "Revised" License

Go 98.49% Dockerfile 0.69% Makefile 0.81%
ads block dns dns-server pihole pihole-blocklists trackers tracking

donutdns's People

Contributors

dependabot[bot] avatar shoenig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

donutdns's Issues

type 65 not being blocked

e.g.

... isn't 65 ASCII for 'A'? Not sure what's happening here

Aug 28 22:02:12 thinkcentre donutdns[19572]: [INFO] plugin/donutdns: BLOCK query (A) for roomapi.stocktwits.com.
Aug 28 22:02:12 thinkcentre donutdns[19572]: [DEBUG] plugin/donutdns: query: ql.stocktwits.com. type: 65 not an A or AAAA record, fallthrough
Aug 28 22:02:12 thinkcentre donutdns[19572]: [DEBUG] plugin/donutdns: query: roomapi.stocktwits.com. type: 65 not an A or AAAA record, fallthrough
Aug 28 22:02:12 thinkcentre donutdns[19572]: [DEBUG] plugin/donutdns: query: www.googletagservices.com. type: 65 not an A or AAAA record, fallthrough
Aug 28 22:02:12 thinkcentre donutdns[19572]: [DEBUG] plugin/donutdns: query: www.google-analytics.com. type: 65 not an A or AAAA record, fallthrough
Aug 28 22:02:12 thinkcentre donutdns[19572]: [DEBUG] plugin/donutdns: query: cds.s5x3j6q5.hwcdn.net. type: 65 not an A or AAAA record, fallthrough

cli: enable running sub-commands

Instead of merging #4 directly, it'd be nice to be able to incorporate such sub-tools into the donutdns binary itself - avoiding the large chunk of duplicate code.

As a first small command, I always wanted a way to check if a query would be blocked or not without going through the trouble of launching donutdns and using dig to send a query, etc.

Instead let us do something like

donutdns check <domain>

And the output would be something like one of

Blocked by default list exact match
Blocked by custom list exact match
Blocked by custom list suffix match
Allowed

metrics: enable exporting metrics for aggregation

It would be nice to have a way to track metrics around DNS queries and whether they were blocked, and if so, in what manner (default vs. custom list).

Not sure if we should pick one metrics format, need to look into what's common these days (e.g. prometheus vs. statsd, etc.)

idea: concurrent fetching of defaults

Currently we download the default lists one at a time, which can be kinda slow depending on network/instance circumstances. Try running them in parallel up to GOMAXPROCS at a time.

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.