From 344e03a6b33c7ab2dc31ba4ecb9137dc7660ecaa Mon Sep 17 00:00:00 2001 From: kylerisse Date: Fri, 7 Mar 2025 19:07:45 -0800 Subject: [PATCH] facts.inventory: add DNS search domain to all DHCP pools --- facts/inventory.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/facts/inventory.py b/facts/inventory.py index e52f55cf..9cc06a65 100755 --- a/facts/inventory.py +++ b/facts/inventory.py @@ -568,7 +568,10 @@ def generatekeaconfig(servers, aps, vlans, outputdir): "pools": [ {"pool": vlan["ipv4dhcpStart"] + " - " + vlan["ipv4dhcpEnd"]} ], - "option-data": [{"name": "routers", "data": str(vlan["ipv4router"])}], + "option-data": [ + {"name": "routers", "data": str(vlan["ipv4router"])}, + {"name": "domain-search", "data": "scale.lan"}, + ], } # lower lease times for the APs if vlan["name"] in ["cfInfra", "exInfra"]: @@ -603,6 +606,7 @@ def generatekeaconfig(servers, aps, vlans, outputdir): "pools": [ {"pool": vlan["ipv6dhcpStart"] + " - " + vlan["ipv6dhcpEnd"]} ], + "option-data": [{"name": "domain-search", "data": "scale.lan"}], } # lower lease times for the APs if vlan["name"] in ["cfInfra", "exInfra"]: