From 3eccf923cc6e29f2f5b27b882e8cec574e2976e6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 3 Jan 2021 20:34:04 +0100 Subject: dhcp-to-dns: always use first entry to place before --- dhcp-to-dns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhcp-to-dns') 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 ]; -- cgit v1.2.3-70-g09d2