Skip to content

Commit 15ec3ce

Browse files
author
steve
committed
Make that 'trust-anchors' a bit better with the curly braces.
1 parent 85e6f3a commit 15ec3ce

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

syntax/bind-named.vim

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5821,21 +5821,15 @@ syn keyword namedTa_Key contained skipwhite skipnl skipempty
58215821
\ nextgroup=namedTk_Flag
58225822

58235823
hi link namedTa_Domain namedHL_String
5824-
syn match namedTa_Domain contained skipwhite skipnl skipempty
5825-
\ /\S\{1,1023}/
5826-
\ contains=namedDomainName
5824+
syn match namedTa_Domain contained /\<\S\{1,256}\>/
5825+
\ skipwhite skipnl skipempty
58275826
\ nextgroup=namedTa_Key
58285827

58295828
syn region namedTa_Section contained start=+{+ end=+}+
58305829
\ skipwhite skipnl skipempty
58315830
\ contains=namedTa_Domain
58325831
\ nextgroup=namedSemicolon
58335832

5834-
hi link namedStmt_TrustAnchors namedHL_String
5835-
syn match namedStmt_TrustAnchors contained /\S{1,1023}/
5836-
\ skipwhite skipnl skipempty
5837-
\ nextgroup=namedTa_Key
5838-
58395833
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
58405834
" trusted-keys { <domain_name> <flag_type> <protocol> <algorithm> <secret>;
58415835
" ... }; // may occur multiple times, deprecated
@@ -6121,8 +6115,8 @@ syn match namedStmtKeyword /\_^\s*\<statistics-channels\>/
61216115

61226116
syn match namedStmtKeyword /\_^\s*\<trust-anchors\>/
61236117
\ skipwhite skipnl skipempty
6124-
\ nextgroup=namedStmt_TrustAnchors
6125-
\ containedin=namedStmt_OptionsSection
6118+
\ nextgroup=namedTa_Section
6119+
" \ containedin=namedStmt_OptionsSection
61266120

61276121
syn match namedStmtKeyword /\_^\s*\<trusted-anchors\>/
61286122
\ skipwhite skipnl skipempty

test/example-9.16-named.conf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,10 @@ options
668668
dnsrps-options { "asdfasddfasdf"; };
669669
dnssec-accept-expired yes;
670670
dnssec-dnskey-kskonly no;
671+
dnssec-enable yes;
672+
dnssec-enable no;
671673
dnssec-enable True;
674+
dnssec-enable faLSe;
672675
dnssec-loadkeys-interval 0;
673676
dnssec-lookaside no;
674677
dnssec-lookaside auto;
@@ -950,7 +953,7 @@ include "/var/lib/dhcp/bind-listen-on-ip.conf";
950953
transfers-per-ns 63;
951954
trust-anchor-telemetry true;
952955
try-tcp-refresh true;
953-
trust-anchor { egbert.net initial-ds 1 1 1 yes; };
956+
# trust-anchors { example.net initial-ds 1 1 1 yes; };
954957
update-check-ksk true;
955958
use-alt-transfer-source yes;
956959
use-v6-udp-ports { range 1 65535; };
@@ -1015,7 +1018,10 @@ statistics-channels {
10151018
inet * port 53 allow { 1.1.1.1; };
10161019
};
10171020

1018-
trust-anchors { example.invalid initial-ds 3 0 1 12397123987123987123971239879; };
1021+
trust-anchors { example.invalid initial-ds 3 8 3 12397123987123987123971239879; };
1022+
trust-anchors { example.invalid static-ds 3 8 0 12397123987123987123971239879; };
1023+
trust-anchors { example.invalid initial-key 3 8 1 12397123987123987123971239879; };
1024+
trust-anchors { example.invalid static-key 3 11 0 12397123987123987123971239879; };
10191025
trusted-keys { example.invalid 3 0 1 12397123987123987123971239879; };
10201026

10211027
view empty { };

0 commit comments

Comments
 (0)