diff options
author | Christian Hesse <mail@eworm.de> | 2021-01-03 20:34:04 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-01-03 20:34:04 +0100 |
commit | 3eccf923cc6e29f2f5b27b882e8cec574e2976e6 (patch) | |
tree | e9766d29728568a52cfe1dd6a3cac92b2f319ae2 /dhcp-to-dns | |
parent | c18f753338b806595bc861f5740365d165fcd7c3 (diff) |
dhcp-to-dns: always use first entry to place before
Diffstat (limited to 'dhcp-to-dns')
-rw-r--r-- | dhcp-to-dns | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp-to-dns b/dhcp-to-dns index acf93e5..375e083 100644 --- a/dhcp-to-dns +++ b/dhcp-to-dns @@ -26,7 +26,7 @@ / ip dns static add comment="--- dhcp-to-dns above ---" name=- type=NXDOMAIN disabled=yes; $LogPrintExit warning "Added disabled static dns record with comment '--- dhcp-to-dns above ---'." false; } -:local PlaceBefore [ / ip dns static find where comment="--- dhcp-to-dns above ---" name=- type=NXDOMAIN disabled ]; +:local PlaceBefore ([ / ip dns static find where comment="--- dhcp-to-dns above ---" name=- type=NXDOMAIN disabled ]->0); :foreach DnsRecord in=[ / ip dns static find where comment ~ $CommentPrefix ] do={ :local DnsRecordVal [ / ip dns static get $DnsRecord ]; |