LanCache

Make the most of your network. Get more play for your gamers. Download your games once and serve them out to many people at your LAN.

Docker Compose

version: '3.3'
services:
    lancache-dns:
        restart: unless-stopped
        container_name: lancache-dns
        ports:
            - 53:53/udp
        environment:
            - USE_GENERIC_CACHE=true
            - LANCACHE_IP=192.168.1.183
        image: lancachenet/lancache-dns:latest
    monolithic:
        restart: unless-stopped
        container_name: lancache
        volumes:
            - /cache/data:/data/cache
            - /cache/logs:/data/logs
        ports:
            - 8810:80
            - 8443:443
        image: lancachenet/monolithic:latest

DNS (Port 53) Error Fix

Edit /etc/systemd/resolved.conf and change the Cache and DNSStubListener lines to no. 

Should look like this when you're done:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details

[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=yes
#MulticastDNS=yes
#DNSSEC=allow-downgrade
#DNSOverTLS=no
Cache=no
DNSStubListener=no
#ReadEtcHosts=yes

Test Operation

Testing your cache

Now you’ve configured your dns, started that stack and are ready to test things are operating. Here’s some very basic diagnostics and tests we would suggest to run to see if things are working.

  1. Check your dns is being intercepted
ipconfig /flushdns
nslookup steam.cache.lancache.net
nslookup lancache.steamcontent.com
  1. Download a game through steam
  1. Uninstall the first game and download again
  1. Try a few other cdns

  2. Precache some of the more popular games you might expect to happen at your event

  1. Get your friends round and enjoy the entire lan being able to download a game for only 1x external traffic.