cache-domains/scripts
Daniel Hoffend df6d36d1b7
Script Support for RPZ Domains (#180)
* add script to generate bind response policy zone for dns manipulation/filtering
* rpz: support custom basedomain via cli arg
* Update create-rpz.sh
* changed times to match current lanacache_dns
2022-04-03 15:53:00 +01:00
..
config.example.json Support passing multiple IP addresses 2019-06-15 23:27:16 +02:00
create-dnsmasq.sh Simplify Dnsmasq script 2021-09-12 10:15:11 +10:00
create-rpz.sh Script Support for RPZ Domains (#180) 2022-04-03 15:53:00 +01:00
create-squid.sh Added some commentry to create-squid.sh 2021-10-10 12:44:18 +00:00
create-unbound.sh Remove duplicates in Unbound generation script 2021-06-15 13:14:49 +10:00
README.md Simplify Dnsmasq script 2021-09-12 10:15:11 +10:00

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

  1. Copy config.example.json to config.json.
  2. 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"
  }
}
  1. Run generation script relative to your DNS implementation: bash create-dnsmasq.sh.
  2. Copy files from output/{dnsmasq,unbound}/* to the respective locations for Dnsmasq/Unbound.
  3. 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.