mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-05-31 15:52:37 +00:00
dhcp-to-dns: convert DNS names to lower case
This commit is contained in:
parent
0c3ef1b0dc
commit
df289640bc
1 changed files with 2 additions and 2 deletions
|
|
@ -89,8 +89,8 @@
|
|||
:local HostName [ $CleanName [ $EitherOr ([ $ParseKeyValueStore ($LeaseVal->"comment") ]->"hostname") ($LeaseVal->"host-name") ] ];
|
||||
:local NetDomain ([ $IfThenElse ([ :len ($NetworkInfo->"name-extra") ] > 0) ($NetworkInfo->"name-extra" . ".") ] . \
|
||||
[ $EitherOr [ $EitherOr ($NetworkInfo->"domain") ($NetworkVal->"domain") ] $Domain ]);
|
||||
:local FullA ($MacDash . "." . $NetDomain);
|
||||
:local FullCN ($HostName . "." . $NetDomain);
|
||||
:local FullA [ :convert transform=lc ($MacDash . "." . $NetDomain) ];
|
||||
:local FullCN [ :convert transform=lc ($HostName . "." . $NetDomain) ];
|
||||
:local MacInServer ($LeaseVal->"active-mac-address" . " in " . $LeaseVal->"server");
|
||||
|
||||
:local DnsRecord [ /ip/dns/static/find where comment=$Comment type=A ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue