lancachenet / lancache-dns

DNS Docker service for a lancache.
https://hub.docker.com/r/lancachenet/lancache-dns/
MIT License
285 stars 75 forks source link

DNS not working at all #86

Closed ghost closed 5 years ago

ghost commented 5 years ago

Issue Description: Attempting to make a steam cache server, when I got everything setup on my Ubuntu 18.04 machine, it doesn't cache anything. It doesn't even have logs. I have a second computer that I set the DNS to the steam cache server and itself, so it can't actually get a website and no connection. Suggesting the DNS server isn't working at all.

Versions: Ubuntu 18.04 Docker: 18.09.6, build 481bc77

Docker Run Command:

docker run --restart unless-stopped --name lancache-dns --detach -p 192.168.0.30:53:53 -e USE_GENERIC_CACHE=true -e UPSTREAM_DNS=8.8.8.8 -e LANCACHE_IP=192.168.0.30 lancachenet/lancache-dns:latest
docker run --restart unless-stopped --name lancache --detach -v /cache/data:/data/cache -v /cache/logs:/data/logs -p 80:80  lancachenet/monolithic:latest
docker run --restart unless-stopped --name sniproxy --detach -p 443:443 lancachenet/sniproxy:latest

Docker Container Output: No errors, regular output. Also no logs, at least from the containers.

I believe this is an error with Docker itself, since it uses it's own local network instead of the one my machines are on, if this is the issue how do I go about fixing this?

ghost commented 5 years ago

Ahah! It turns out the DNS needs to run on UDP not TCP

Swapping the DNS container for docker run --restart unless-stopped --name lancache-dns --detach -p 192.168.0.30:53:53/udp -e USE_GENERIC_CACHE=true -e UPSTREAM_DNS=8.8.8.8 -e LANCACHE_IP=192.168.0.30 lancachenet/lancache-dns:latest

allows my second computer to connect to the internet by using the steam cache server as a DNS.