lancachenet / lancache-dns

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

Container wont start with Windows Cache #42

Closed jjweems closed 6 years ago

jjweems commented 6 years ago

Issue Description: The container is not booting properly due to a missing file (supposedly). When I remove the Windows Cache from my run script, everything works fine. My host machine is running Ubuntu 16.04.5 LTS.

Docker Run Command:

sudo docker run \
  --restart unless-stopped -d \
  --name steamcache-dns \
  -p 172.16.1.13:53:53/udp \
  -e UPSTREAM_DNS=8.8.8.8 \
  -e STEAMCACHE_IP=172.16.1.13 \
  -e ORIGINCACHE_IP=172.16.1.14 \
  -e BLIZZARDCACHE_IP=172.16.1.15 \
  -e RIOTCACHE_IP=172.16.1.16 \
  -e FRONTIERCACHE_IP=172.16.1.17 \
  -e WINDOWSCACHE_IP=172.16.1.18 \
  steamcache/steamcache-dns:latest  

Docker Container Output:

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

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

Bootstrapping DNS from https://github.com/uklans/cache-domains
Creating apple template
Creating arenanet template
Creating blizzard template
Creating daybreak template
Creating frontier template
Creating gog template
Creating hirez template
Creating minecraft template
Creating nexusmods template
Creating nintendo template
Creating origin template
Creating riot template
Creating rockstar template
Creating sony template
Creating steam template
Creating uplay template
Creating twitch template
Creating wargaming template
Creating wsus template
Creating xboxlive template

 ---

Enabling FRONTIER on IP 172.16.1.17
creating /etc/bind/cache/frontier.db
Enabling RIOT on IP 172.16.1.16
creating /etc/bind/cache/riot.db
Enabling ORIGIN on IP 172.16.1.14
creating /etc/bind/cache/origin.db
Enabling WINDOWS on IP 172.16.1.18
creating /etc/bind/cache/windows.db
sed: /etc/bind/cache/windows.db: No such file or directory
JasonRivers commented 6 years ago

Please use WSUSCACHE_IP instead of WINDOWSCACHE_IP, The services are as they are written here: https://github.com/uklans/cache-domains/blob/master/cache_domains.json but Upper case for environment variables.