changeset 117:fb87591c985d

dnsmasq tell lanscape when leases change
author drewp@bigasterisk.com
date Sat, 26 Nov 2022 19:56:06 -0800
parents 6ec849f1a8c9
children 69058ad170be
files templates/dnsmasq/dnsmasq.conf.j2
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/templates/dnsmasq/dnsmasq.conf.j2	Sat Nov 26 19:55:38 2022 -0800
+++ b/templates/dnsmasq/dnsmasq.conf.j2	Sat Nov 26 19:56:06 2022 -0800
@@ -31,10 +31,11 @@
 dhcp-broadcast
 dhcp-authoritative
 dhcp-option=option:domain-name,bigasterisk.com
+dhcp-script=/opt/dnsmasq_exporter/on_dhcp_change.sh
 dhcp-hostsfile=/opt/dnsmasq/{{ net }}/dhcp_hosts
 dhcp-leasefile=/opt/dnsmasq/{{ net }}/leases
 dhcp-range={{ house_iface }},10.2.0.0,static,infinite
-dhcp-range=tag:!known,{{ house_iface }},{{ dhcp_range }},24h
+dhcp-range=tag:!known,{{ house_iface }},{{ dhcp_range }},2h
 dhcp-option={{ house_iface }},option:dns-server,{{ router }}
 dhcp-option={{ house_iface }},option:router,{{ router }}
 {% endif %}