From 60737f9c394c89d9728ca1e448c5e0962dfd557c Mon Sep 17 00:00:00 2001
From: DL6ER Domains to be excluded from Top Domains / Ads Lists Domains may be described by their domain name (like Clients to be excluded from Top Clients List Clients may be described either by their IP addresses (IPv4 and IPv6 are supported), or hostnames (like This will show all permitted domain entries in the query log. This will show all permitted domain entries in the query log. This will show all blocked domain entries in the query log. This will show all blocked domain entries in the query log. This will require local clients to authenticate to access the API. This is useful if you want to prevent local users from accessing the API without knowing the password. This will make the API output more human-readable, but will increase the size of the output and make the API a bit slower. Make sure your router's DHCP server is disabled when using the Pi-hole DHCP server! Enable this option to enable IPv6 support for the Pi-hole DHCP server. This will allow the Pi-hole to hand out IPv6 addresses to clients and also provide IPv6 router advertisements (RA) to clients. This option is only useful if the Pi-hole is configured with an IPv6 address. The DNS domains for the DHCP server. If no domain is specified, then any DHCP hostname with a domain part (i.e., with a period) will be disallowed. If a domain is specified, then hostnames with a domain parts matching the domain here are allowed. In addition, when a suffix is set then hostnames without a domain part have the suffix added as an optional domain part. The lease time can be in seconds, minutes (e.g., "45m"), hours (e.g., "1h"), days (like "2d"), or even weeks ("1w"). You may also use "infinite" as string but be aware of the drawbacks: assigned addresses are will only be made available again after the lease time has passed or when leases are manually deleted below. The DHCPv4 rapid commit option allows the Pi-hole DHCP server to assign an IP address to a client right away. This can noteably speed up the address assignment process and you will notice, e.g., faster WiFi joins in your network. This option should only be enabled if the Pi-hole DHCP server is the only DHCP server in your network. Advertise DNS server multiple times to clients. Some devices will add their own proprietary DNS servers to the list of DNS servers, which can cause issues with Pi-hole. This option will advertise the Pi-hole DNS server multiple times to clients, which should prevent this from happening. Specify per host parameters for the DHCP server. This allows a machine with a particular hardware address to be always allocated the same hostname, IP address and lease time. A hostname specified like this overrides any supplied by the DHCP client on the machine. It is also allowable to omit the hardware address and include the hostname, in which case the IP address and lease times will apply to any machine claiming that name. Each entry should be on a separate line, and should be of the form: Only one entry per MAC address is allowed. The following list contains all DNS servers selected above. Furthermore, you can add your own custom DNS servers here. The expected format is one server per line in form of example.com)laptop.lan).
ID
Valid
+ TLS
Login at
Valid until
Client IP
diff --git a/settings-dhcp.lp b/settings-dhcp.lp
index 742db0b8..99d83168 100644
--- a/settings-dhcp.lp
+++ b/settings-dhcp.lp
@@ -19,7 +19,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
+
[<hwaddr>][,id:<client_id>|*][,set:<tag>][,tag:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]
IP#port, where the port is optional. If given, it has to be separated by a hash # from the address (e.g. 127.0.0.1#5335 for a local unbound istance running on port 5335). The port defaults to 53 if omitted.
These options are dangerous on devices @@ -168,7 +168,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
Tells Pi-hole to never forward A or AAAA queries for plain names, without dots or domain parts, to upstream nameservers. If @@ -179,7 +179,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
All reverse lookups for private IP ranges (i.e., 192.168.0.x/24, etc.)
which are not found in /etc/hosts or the DHCP leases are answered
@@ -191,7 +191,7 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
Validate DNS replies and cache DNSSEC data. When forwarding DNS queries, Pi-hole requests the DNSSEC records needed to validate @@ -213,8 +213,8 @@ mg.include('scripts/pi-hole/lua/header_authenticated.lp','r')
Block clients making more than queries within - seconds.
+Block clients making more than queries within + seconds.
When a client makes too many queries in too short time, it
gets rate-limited. Rate-limited queries are answered with a
REFUSED reply and not further processed by FTL