Skip to content

pfSense DNS server configuration generator for running a lancache

Notifications You must be signed in to change notification settings

zeropingheroes/lancache-dns-unbound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. git clone https://github.com/zeropingheroes/lancache-dns-pfsense.git
  2. cp .env.example .env
  3. nano .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

  1. Copy the generated configuration file to /usr/local/etc/unbound.opnsense.d/
  2. Restart unbound
    1. From the web interface: Services > Unbound DNS > General > 🔄
    2. From the terminal: pluginctl -s unbound restart

Install config in pfSense

  1. Navigate to Services > DNS Resolver
  2. Scroll down to Custom Options
  3. Paste in the contents of the generated file

About

pfSense DNS server configuration generator for running a lancache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages