mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-06-03 17:22:40 +00:00
dhcp-to-dns: allow to specify domain for CNAMEs...
... in network or lease.
This commit is contained in:
parent
172298f5eb
commit
71df93e011
2 changed files with 15 additions and 1 deletions
|
|
@ -91,7 +91,8 @@
|
|||
:local NetDomain ([ $IfThenElse ([ :len ($NetworkInfo->"name-extra") ] > 0) ($NetworkInfo->"name-extra" . ".") ] . \
|
||||
[ $EitherOr [ $EitherOr ($NetworkInfo->"domain") ($NetworkVal->"domain") ] $Domain ]);
|
||||
:local FullA [ :convert transform=lc ($MacDash . "." . $NetDomain) ];
|
||||
:local FullCN [ :convert transform=lc ($HostName . "." . $NetDomain) ];
|
||||
:local CNameDomain [ $EitherOr ($LeaseInfo->"cname-domain") ($NetworkInfo->"cname-domain") ];
|
||||
:local FullCN [ :convert transform=lc ($HostName . "." . [ $EitherOr $CNameDomain $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