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

Steamcache dns bootstrap doesn't fully check USE_GENERIC_CACHE #56

Closed VibroAxe closed 5 years ago

VibroAxe commented 5 years ago

Issue Description: Setting env var USE_GENERIC_CACHE=false without setting LANCACHE_IP causes steamcache-dns to fail

Docker Run Command:

docker run --name steamcache-dns -p 10.0.0.2:53:53/udp -e STEAMCACHE_IP=10.0.0.3 -e USE_GENERIC_CACHE=false -e UPSTREAM_DNS=8.8.8.8 steamcache/steamcache-dns:latest

Docker Container Output:

     _                                      _                       _
    | |                                    | |                     | |
 ___| |_ ___  __ _ _ __ ___   ___ __ _  ___| |__   ___   _ __   ___| |_
/ __| __/ _ \/ _` | '_ ` _ \ / __/ _` |/ __| '_ \ / _ \ | '_ \ / _ \ __|
\__ \ ||  __/ (_| | | | | | | (_| (_| | (__| | | |  __/_| | | |  __/ |_
|___/\__\___|\__,_|_| |_| |_|\___\__,_|\___|_| |_|\___(_)_| |_|\___|\__|

configuring /etc/resolv.conf to stop from looping to ourself

If you are using USE_GENERIC_CACHE then you must set LANCACHE_IP