Coder Social home page Coder Social logo

cielquan / doth-dns Goto Github PK

View Code? Open in Web Editor NEW
29.0 2.0 1.0 494 KB

Your server doth DNS the safe way if you use DoTH-DNS.

License: GNU General Public License v3.0

Shell 76.10% Dockerfile 23.90%
dns-server encryption docker docker-compose bash-script pi-hole unbound doh-server traefik doh

doth-dns's People

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

Watchers

 avatar  avatar

Forkers

willis936

doth-dns's Issues

traefik support

  1. Add support for the use of treafik infront of the container constellation.
  2. Maybe swap nginx out for only traefik.

HTTP site inaccessible

  • DoTH-DNS version:
  • Bash version:
  • Operating System:

Description

HTTP and HTTPS (when configured) sites return a simple 404 page not found.

Continuing discussion from here:

#8 (comment)

What I Did

Check that pihole and unbound working correctly:

~# docker exec -it pihole bash
/# pihole status
/# dig github.com

pihole status shows pihole is up and dig shows that the localhost is the referenced DNS server.

Continuing from this comment:

#8 (comment)

~# docker logs traefik
time="2021-03-27T17:29:59Z" level=info msg="Configuration loaded from file: /etc/traefik/traefik.toml"
time="2021-03-27T17:29:59Z" level=info msg="Traefik version 2.1.9 built on 2020-03-23T16:55:31Z"
time="2021-03-27T17:29:59Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/contributing/data-collection/\n"
time="2021-03-27T17:29:59Z" level=info msg="Starting provider aggregator.ProviderAggregator {}"
time="2021-03-27T17:29:59Z" level=info msg="Starting provider *file.Provider {\"directory\":\"/etc/traefik/traefik.conf.d/\",\"watch\":true}"
time="2021-03-27T17:29:59Z" level=info msg="Starting provider *traefik.Provider {}"
time="2021-03-27T17:29:59Z" level=info msg="Starting provider *docker.Provider {\"watch\":true,\"endpoint\":\"unix:///var/run/docker.sock\",\"defaultRule\":\"Host(`{{ normalize .Name }}`)\",\"swarmModeRefreshSeconds\":15000000000}"
time="2021-03-27T17:30:03Z" level=info msg="Skipping same configuration" providerName=docker
time="2021-03-27T17:30:06Z" level=info msg="Skipping same configuration" providerName=docker
10.111.222.128 - - [27/Mar/2021:17:30:26 +0000] "GET / HTTP/2.0" 404 19 "-" "-" 1 "-" "-" 0ms
10.111.222.128 - - [27/Mar/2021:17:30:26 +0000] "GET /favicon.ico HTTP/2.0" 404 19 "-" "-" 2 "-" "-" 0ms
time="2021-03-27T17:40:01Z" level=warning msg="A new release has been found: 2.4.8. Please consider updating."10.111.222.128 - - [27/Mar/2021:17:48:10 +0000] "GET / HTTP/2.0" 404 19 "-" "-" 3 "-" "-" 0ms
time="2021-03-28T18:30:01+01:00" level=warning msg="A new release has been found: 2.4.8. Please consider updating."
10.111.222.130 - - [29/Mar/2021:11:56:29 +0000] "GET / HTTP/2.0" 404 19 "-" "-" 4 "-" "-" 0ms
10.111.222.130 - - [29/Mar/2021:11:56:29 +0000] "GET /favicon.ico HTTP/2.0" 404 19 "-" "-" 5 "-" "-" 0ms

I just noticed that the readme update says that this project was made for pihole 4. It’s possible that this issue is related to pihole 5.

doh_server fails to build

  • DoTH-DNS version: 7.0.0
  • Bash version: 5.0.3(1)-release (arm-unknown-linux-gnueabihf)
  • Operating System: DietPi 7.0.2, Raspbian GNU/Linux 10 (buster), kernel 5.10.17-v7l+, bootloader: 1599135103, VL805: 00138a1

Description

Running dothdns fails to build doh_server.

I have also tried installing from source (version 7.0.2.dev1+ga5ce6eb) and observed the same behavior.

# dothdns run
SUCCESS:   Set environment variables in `.env` file.
WARNING:   No ['cert.crt', 'key.key'] files found. Dashboards, DoH and DoT need both a 'certificate' and a corresponding 'key'. If you have not set those files up on another way encryption will not work properly.
SUCCESS:   Set environment variables in `.env` file.
INFO:      Image for 'doh_server' not found.
INFO:      Compiling image for 'doh_server' for version 2.2.4. This may last a bit.
ERROR:     The build of 'doh_server' image raised an error: The command '/bin/sh -c set -x     && delgroup ping     && addgroup -g 8053 doh     && adduser -D -G doh -u 8053 doh     && apk add -q --no-cache --virtual .build-deps gcc git go musl-dev     && apk add -q --no-cache bash ca-certificates shadow su-exec tzdata     && go get github.com/m13253/dns-over-https/doh-server     && cp -r /go/bin/* /usr/local/bin     && apk del -q --purge .build-deps     && rm -rf /go /root/.cache/* /tmp/* /var/cache/apk/*' returned a non-zero code: 5
Aborted!

What I Did

Install DoTH-DNS via pip then run dothdns run.

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.