Last active
October 12, 2021 15:41
-
-
Save RPTST/1be182200eda7f1052f3650fcf68b104 to your computer and use it in GitHub Desktop.
LANCache and DNS fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing | |
# LanCache shell script | |
#!bin/bash | |
export HOST_IP=`hostname -I | cut -d' ' -f1` | |
docker run --restart unless-stopped --name lancache-dns --detach -p 53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=$HOST_IP 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 -p 443:443 lancachenet/monolithic:latest | |
echo Please configure your router/dhcp server to serve dns as $HOST_IP | |
or | |
# Docker compose script | |
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.2.183 | |
image: lancachenet/lancache-dns:latest | |
monolithic: | |
restart: unless-stopped | |
container_name: lancache | |
volumes: | |
- /cache/data:/data/cache | |
- /cache/logs:/data/logs | |
ports: | |
- 8080:80 | |
- 8443:443 | |
image: lancachenet/monolithic:latest | |
# Resolve DNS issues | |
sudo nano /etc/resolved.conf | |
[Resolve] | |
#DNS= | |
#FallbackDNS= | |
#Domains= | |
#LLMNR=yes | |
#MulticastDNS=yes | |
#DNSSEC=allow-downgrade | |
#DNSOverTLS=no | |
Cache=no | |
DNSStubListener=no | |
#ReadEtcHosts=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment