mirror of
https://github.com/uklans/cache-domains
synced 2025-06-19 07:52:56 +02:00
In https://github.com/uklans/cache-domains/pull/174 the output changed from a single `lancache.conf` to many variously named `.conf` files. Previously, It was only necessary to configure Dnsmasq with a single `lancache.conf` as the (also generated) `.hosts` files were referenced within. Since said pull request it is now necessary to configure Dnsmasq with N `.conf` files. This commit reverts this to only needing a single `lancache.conf` file. I also can't see anything that the multiple `.conf` files afford us. I could see it providing an additional way of selectively disabling the caching of domain groups. But I'd argue that using the, `"cache_domains": { "steam": "disabled" }` way, or not having a `default` entry is still a better way. And was previously the only way for disabling wildcard domain groups. Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com> |
||
---|---|---|
.. | ||
config.example.json | ||
create-dnsmasq.sh | ||
create-unbound.sh | ||
README.md |
DNS Generation Scripts
Introduction
The respective shell scripts contained within this directory can be utilised to generate application specific compliant configuration which can be utilised with:
- Dnsmasq
- Unbound
Usage
- Copy
config.example.json
toconfig.json
. - Modify
config.json
to include your Cacheserver's IP(s) and the CDNs you plan to cache. The following example assumes a single shared Cacheserver IP:
{
"ips": {
"generic": ["10.10.10.200"]
},
"cache_domains": {
"blizzard": "generic",
"epicgames": "generic",
"nintendo": "generic",
"origin": "generic",
"riot": "generic",
"sony": "generic",
"steam": "generic",
"uplay": "generic",
"wsus": "generic"
}
}
- Run generation script relative to your DNS implementation:
bash create-dnsmasq.sh
. - Copy files from
output/{dnsmasq,unbound}/*
to the respective locations for Dnsmasq/Unbound. - Restart Dnsmasq or Unbound.
Notes for Dnsmasq users
This also applies to users utilising the script alongside Pi-hole.
Multi-IP Lancache setups are only supported with Dnsmasq or Pi-hole versions >= 2.86 or 2021.09 respectively.