mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-06-01 16:22:38 +00:00
dhcp-to-dns: normalize A and CNAME record names to lowercase
This commit is contained in:
parent
b6e933406a
commit
e7f23d6a32
1 changed files with 2 additions and 2 deletions
|
|
@ -71,9 +71,9 @@
|
||||||
|
|
||||||
:if ([ :len ($LeaseVal->"active-address") ] > 0) do={
|
:if ([ :len ($LeaseVal->"active-address") ] > 0) do={
|
||||||
:local Comment ($CommentPrefix . ", macaddress=" . $LeaseVal->"active-mac-address" . ", server=" . $LeaseVal->"server");
|
:local Comment ($CommentPrefix . ", macaddress=" . $LeaseVal->"active-mac-address" . ", server=" . $LeaseVal->"server");
|
||||||
:local MacDash [ $CleanName ($LeaseVal->"active-mac-address") ];
|
:local MacDash [ :tolower [ $CleanName ($LeaseVal->"active-mac-address") ] ];
|
||||||
:local LeaseInfo [ $ParseKeyValueStore ($LeaseVal->"comment") ];
|
:local LeaseInfo [ $ParseKeyValueStore ($LeaseVal->"comment") ];
|
||||||
:local HostName [ $CleanName [ $EitherOr ($LeaseInfo->"hostname") ($LeaseVal->"host-name") ] ];
|
:local HostName [ :tolower [ $CleanName [ $EitherOr ($LeaseInfo->"hostname") ($LeaseVal->"host-name") ] ] ];
|
||||||
:local Network [ /ip/dhcp-server/network/find where ($LeaseVal->"active-address") in address ];
|
:local Network [ /ip/dhcp-server/network/find where ($LeaseVal->"active-address") in address ];
|
||||||
:local NetworkVal;
|
:local NetworkVal;
|
||||||
:if ([ :len $Network ] > 0) do={
|
:if ([ :len $Network ] > 0) do={
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue