Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
e750a4c1
Commit
e750a4c1
authored
Sep 03, 2016
by
Miek Gieben
Committed by
GitHub
Sep 03, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #241 from miekg/nsec3-warn
Better logging for NSEC3
parents
ea557b15
99170ac6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
middleware/file/nsec3_test.go
middleware/file/nsec3_test.go
+14
-4
middleware/file/zone.go
middleware/file/zone.go
+1
-1
No files found.
middleware/file/nsec3_test.go
View file @
e750a4c1
...
...
@@ -5,16 +5,26 @@ import (
"testing"
)
func
TestParseNSEC3PARAM
(
t
*
testing
.
T
)
{
_
,
err
:=
Parse
(
strings
.
NewReader
(
nsec3param_test
),
"miek.nl"
,
"stdin"
)
if
err
==
nil
{
t
.
Fatalf
(
"expected error when reading zone, got nothing"
)
}
t
.
Logf
(
"%v
\n
"
,
err
)
}
func
TestParseNSEC3
(
t
*
testing
.
T
)
{
_
,
err
:=
Parse
(
strings
.
NewReader
(
nsec3_test
),
"miek.nl"
,
"stdin"
)
if
err
==
nil
{
t
.
Fatalf
(
"expected error when reading zone, got nothing"
)
}
t
.
Logf
(
"%v
\n
"
,
err
)
}
const
nsec3
_test
=
`miek.nl.
1800 IN SOA linode.atoom.net. miek.miek.nl. 1460175181 14400 3600 604800 14400
const
nsec3
param_test
=
`miek.nl.
1800 IN SOA linode.atoom.net. miek.miek.nl. 1460175181 14400 3600 604800 14400
miek.nl. 1800 IN NS omval.tednet.nl.
miek.nl. 1800 IN NS linode.atoom.net.
miek.nl. 1800 IN NS ext.ns.whyscream.net.
miek.nl. 1800 IN NS ns-ext.nlnetlabs.nl.
miek.nl. 0 IN NSEC3PARAM 1 0 5 A3DEBC9CC4F695C7`
const
nsec3_test
=
`example.org. 1800 IN SOA sns.dns.icann.org. noc.dns.icann.org. 2016082508 7200 3600 1209600 3600
aub8v9ce95ie18spjubsr058h41n7pa5.example.org. 284 IN NSEC3 1 1 5 D0CBEAAF0AC77314 AUB95P93VPKP55G6U5S4SGS7LS61ND85 NS SOA TXT RRSIG DNSKEY NSEC3PARAM
aub8v9ce95ie18spjubsr058h41n7pa5.example.org. 284 IN RRSIG NSEC3 8 2 600 20160910232502 20160827231002 14028 example.org. XBNpA7KAIjorPbXvTinOHrc1f630aHic2U716GHLHA4QMx9cl9ss4QjR Wj2UpDM9zBW/jNYb1xb0yjQoez/Jv200w0taSWjRci5aUnRpOi9bmcrz STHb6wIUjUsbJ+NstQsUwVkj6679UviF1FqNwr4GlJnWG3ZrhYhE+NI6 s0k=`
middleware/file/zone.go
View file @
e750a4c1
...
...
@@ -74,7 +74,7 @@ func (z *Zone) Insert(r dns.RR) error {
z
.
Apex
.
SOA
=
r
.
(
*
dns
.
SOA
)
return
nil
case
dns
.
TypeNSEC3
,
dns
.
TypeNSEC3PARAM
:
return
fmt
.
Errorf
(
"NSEC3 zone is not supported, dropping
"
)
return
fmt
.
Errorf
(
"NSEC3 zone is not supported, dropping
RR: %s for zone: %s"
,
r
.
Header
()
.
Name
,
z
.
origin
)
case
dns
.
TypeRRSIG
:
x
:=
r
.
(
*
dns
.
RRSIG
)
switch
x
.
TypeCovered
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment