Giter Site home page Giter Site logo

jmuchovej / zerodns Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 70 KB

A ZeroTier-DNS to allow for human-readable names of ZeroTier peers.

Home Page: https://john.muchovej.com/projects/zerodns

License: GNU General Public License v3.0

Dockerfile 19.01% Python 65.77% Shell 15.21%
zerotier zerotier-one zerotier-network dns-server coredns zerotier-dns

zerodns's Issues

Create Docker Container

Constraints:

  • Should follow S6
    Should have crontab to update-hosts and update-coredns every 15 minutes

Enable ZeroTier to be optionally included

Modify Dockerfile to "export" two images:

  • With ZeroDNS + CoreDNS. (The current jmuchovej/zerodns achieves this.)
  • With ZeroDNS + CoreDNS + ZeroTier One client.

Ideally, this can rely on build stages. Unclear if build stages support multiple exports, though.

At worst, this becomes another job in the Docker Builds workflow which uses the latest version of jmuchovej/zerodns but adds ZeroTier. (i.e. this splits the current Dockerfile into base.Dockerfile and with-zerotier.Dockerfile.)

Fix resolution speed

While consolidating the Corefile (as below) makes maintenance easy, it seems like it overall slows down connection resolving.

.:5353 {
errors
log
hosts /config/hosts {
reload 15m
fallthrough
}
forward . /etc/resolv.conf
reload 15m
}

I'm not sure if this is because of all the aliases generated (at least 6 per IP address), or if these some kind of timeout to be tweaked. So far, question has been asked on CoreDNS's Discussion board.

Check necessity of `CAP_SYS_ADMIN` and `CAP_NET_ADMIN` capabilities.

Binding to port 53 seems to require CAP_NET_BIND_SERVICE.

Further, having ZeroTier run within the container appears to require CAP_SYS_ADMIN and CAP_NET_ADMIN. Based on my understanding of cap_add โ€“ CAP_SYS_ADMIN should include CAP_NET_ADMIN... but, CAP_SYS_ADMIN also gets pretty close to root's capabilities โ€“ which (ideally) isn't necessary.

  • Need to develop a better understanding of CAP_SYS_ADMIN.
  • Need to develop a better understanding of CAP_NET_ADMIN.
  • Test what capabilities are required for running CoreDNS, strictly.
  • Test what capabilities are required for running ZeroTier, strictly.

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.