Skip to content

Instantly share code, notes, and snippets.

@PARC6502
Created May 28, 2019 22:38
Show Gist options
  • Save PARC6502/21d71b7f3c467ffab4c3cc6f68ab7536 to your computer and use it in GitHub Desktop.
Save PARC6502/21d71b7f3c467ffab4c3cc6f68ab7536 to your computer and use it in GitHub Desktop.
Dns mask dhcp configuration that sets a different DNS server for a single device
# In this example:
# The device to be unblocked has the MAC address MM:MM:MM:SS:SS:SS, and is given the IP 192.168.0.9
# The IP address of the server with dnsmasq is 192.168.0.2
# Unblocked device(s)
dhcp-host=MM:MM:MM:SS:SS:SS,192.168.0.9,48h,set:noblock
dhcp-option=noblock,option:dns-server,1.1.1.1,1.0.0.1
dhcp-option=noblock,option:router,192.168.0.1
# Adblock network
dhcp-range=adblock,192.168.0.10,192.168.0.254,48h
dhcp-option=adblock,option:dns-server,192.168.0.2
dhcp-option=adblock,option:router,192.168.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment