dgibbs64 / cache-domains-with-linux

Domain Names required for LAN Content Cache DNS spoofing
MIT License
7 stars 13 forks source link

Caching of the repository index/db #7

Open mdujava opened 5 months ago

mdujava commented 5 months ago

Describe the issue you are having

When using this list for caching Linux distributions (e.g. Arch linux) database of the repos (core.db, extra.db...) are cached and served with the same retention as packages.

Is there a way to lower retention for those kind of files, as I use it for my devices and vms that are running same systems. No new updates are possible without removing the cached db files and restarting the lancache.

Describe your setup?

Deployed via docker-compose, env file contains CACHE_DOMAINS_REPO and CACHE_DOMAINS_BRANCH pointing to this repo

Are you running sniproxy

Not relevant

DNS Configuration

default from docker-compose

  ports:
    - ${DNS_BIND_IP}:53:53/udp
    - ${DNS_BIND_IP}:53:53/tcp
mdujava commented 4 months ago

Workaround is to BYPASS the download once to get new content into the cache, it can be done with for I in core extra community multilib ...; do curl -o /dev/null http://fqdn/archlinux/${I}/os/x86_64/${I}.db?nocache=1; done