pfSense DNS server configuration generator for running a lancache. Pulls the list of domains from uklans/cache-domains
.
- Ubuntu Server 16.04
- pfSense 2.* using the "DNS Resolver" service
git clone https://github.com/zeropingheroes/lancache-dns-pfsense.git && cd lancache-dns-pfsense
All configuration is done via environment variables:
cp .env.example .env
nano .env
Alternatively set the environment variables manually by running:
export VARIABLE=value
sudo ./generate.sh
- Copy the output from the console and paste into pfSense:
- Services > DNS Resolver > General Settings > Custom Options
The config is also available from /tmp/lancache-dns-pfsense/lancache-dns-pfsense.conf