mirror of
https://github.com/zeropingheroes/lancache-dns-unbound.git
synced 2026-04-26 16:35:55 +03:00
pfSense DNS server configuration generator for running a lancache
To fix error git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. This works without github ssh clone link |
||
|---|---|---|
| .env.example | ||
| .gitignore | ||
| generate.sh | ||
| README.md | ||
lancache-dns-unbound
Generate a configuration file for use with Unbound DNS server to redirect domains to a lancache.
Thanks to uklans.net for compiling and maintaining the list of domains.
Setup
git clone https://github.com/zeropingheroes/lancache-dns-pfsense.gitcp .env.example .envnano .env
You can also use a comma to seperate multiple ip addresses, for example:
export LANCACHE_IP="192.168.1.1,192.168.1.2"
Usage
Run ./generate.sh to generate an unbound configuration file.
Install config in OPNsense
- Copy the generated configuration file to
/usr/local/etc/unbound.opnsense.d/ - Restart unbound
- From the web interface: Services > Unbound DNS > General > 🔄
- From the terminal:
pluginctl -s unbound restart
Install config in pfSense
- Navigate to Services > DNS Resolver
- Scroll down to Custom Options
- Paste in the contents of the generated file