Compare commits

...

2 commits

Author SHA1 Message Date
Christian Hesse
7a1543bf8a Merge branch 'dhcp-to-dns' into next 2026-05-12 11:04:37 +02:00
Christian Hesse
659712e46f dhcp-to-dns: allow to ignore for specific lease 2026-05-12 11:02:47 +02:00
2 changed files with 4 additions and 2 deletions

View file

@ -80,8 +80,8 @@
}
:local NetworkInfo [ $ParseKeyValueStore ($NetworkVal->"comment") ];
:if ($NetworkInfo->"dns-ignore" = true) do={
$LogPrint debug $ScriptName ("Lease for " . $LeaseVal->"active-mac-address" . " is in ignored network... Skipping.");
:if ($LeaseInfo->"dns-ignore" = true || $NetworkInfo->"dns-ignore" = true) do={
$LogPrint debug $ScriptName ("Lease for " . $LeaseVal->"active-mac-address" . " is ignored... Skipping.");
:continue;
}

View file

@ -55,6 +55,8 @@ for specific networks:
/ip/dhcp-server/network/add address=10.0.0.0/24 domain=example.com comment="dns-ignore=true";
The same can be done for a specific lease with its comment.
Use this to add an extra level in dns name or define a different domain.
/ip/dhcp-server/network/add address=10.0.0.0/24 domain=example.com comment="domain=another-domain.com, name-extra=dhcp";