Giter Club home page Giter Club logo

dns-resolution's Introduction

Local DNS Resolution over TLS

This repo provides a dockerized dns resolution system based on PiHole with outbound DNS encryption over TLS via stubby and Cloudflare (configurable). It is desigend to work on ARM hardware as I run this on two Raspberry Pi 3 systems for my home network.

To Use

  1. Clone Repo
  2. Copy .env.example to .env
  3. Edit .env as needed
  4. Add any extra config under config/dnsmasq.d/ - I recommend one file per domain to keep things organized. PiHole will serve these files as normal. Note: Do not name the file 01-pihole.conf. That will be overwritten. Certain config options will not be avaiable as pihole uses them. An example would be cache settings.
  5. Do a docker-compose up -d on the command line and enjoy local, safe DNS with ad-blocking!

Thanks

Special thanks to

Notes

  • This uses a bit of a network hack to get around DNSMasq not accepting the service name as a forwarding DNS server. It isn't scalable as a result. This is ok for its intended use, but user beware.
  • PiHole is the better option for adblocking currently.
    • PiHole is an interesting beast. It uses a custom DNSMasq version under the hood.
    • It is not great. The container behaves oddly. For example, it reports as running/healthy even though it is still loading and, despite having a config directory it seems to overwrite the config on every load.

TODO

  • Need to build my own stubby container to allow low-priviledged port binds and clean a lot of things up.
    • setcap CAP_NET_BIND_SERVICE=+eip /opt/stubby/bin/stubby
    • Base off of Matthew Vances stubby build here

dns-resolution's People

Contributors

derekmurawsky avatar

Watchers

 avatar

dns-resolution's Issues

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.