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

SONY_IP not caching #46

Closed orhanck closed 6 years ago

orhanck commented 6 years ago

Issue Description:

I've successfully got steam to cache my downloads, however with the PS4 my downloads aren't being cached, I'm monitoring activity using nload

Docker Run Command:

sudo docker run \
  --restart unless-stopped -d \
  --name steam-cache \
  -v /home/oc/cache/steam/data:/data/cache \
  -v /home/oc/cache/steam/logs:/data/logs \
  -p 192.168.43.50:80:80 \
  steamcache/generic:latest

sudo docker run \
  --restart unless-stopped -d \
  --name sony-cache \
  -v /home/oc/cache/sony/data:/data/cache \
  -v /home/oc/cache/sony/logs:/data/logs \
  -p 192.168.43.51:80:80 \
  steamcache/generic:latest

sudo docker run \
  --restart unless-stopped -d \
  --name steamcache-dns \
  -p 192.168.43.50:53:53/udp \
  -e UPSTREAM_DNS=1.1.1.1 \
  -e STEAMCACHE_IP=192.168.43.50 \
  -e SONY_IP=192.168.43.51 \
  steamcache/steamcache-dns:latest

docker run \
 --restart unless-stopped -d \
  --name sniproxy \
  -p 443:443 \
  steamcache/sniproxy:latest

I've set the DNS record on the PS4 to 192.168.43.51.

JasonRivers commented 6 years ago

Your DNS is not listening on 192.168.43.51, It's listening on 192.168.43.50.

JasonRivers commented 6 years ago

I have just taken another look at your config, you will want SONYCACHE_IP instead of SONY_IP.