mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-05 18:55:29 +02:00
dhcp-to-dns: always create A record with mac address...
... and an optional CNAME with host name.
This commit is contained in:
parent
4a0f395fe1
commit
aac8709881
3 changed files with 16 additions and 12 deletions
|
@ -10,9 +10,10 @@
|
|||
# Changes for global-config to be added to notification on script updates
|
||||
:global GlobalConfigChanges {
|
||||
96="Added support for notes in 'netwatch-notify', these are included verbatim into the notification.";
|
||||
97="Modified 'dhcp-to-dns' to always add A records for names with mac address, and optionally add CNAME records if the host name is available.";
|
||||
};
|
||||
|
||||
# Migration steps to be applied on script updates
|
||||
:global GlobalConfigMigration {
|
||||
0;
|
||||
97=":local Rec [ /ip/dns/static/find where comment~\"^managed by dhcp-to-dns for \" ]; :if ([ :len \$Rec ] > 0) do={ /ip/dns/static/remove \$Rec; /system/script/run dhcp-to-dns; }";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue