diff options
author | 2016-11-09 10:02:26 +0000 | |
---|---|---|
committer | 2016-11-09 10:02:26 +0000 | |
commit | 4ef53081c536a66acf77c7b1e3df15c2fc0ca52b (patch) | |
tree | 0fa5650b1483ce16cb308b05e2aa1e94754c941d /middleware/file/ds_test.go | |
parent | 6abbe231e5a587940d7cc64de4348ced05b70828 (diff) | |
download | coredns-4ef53081c536a66acf77c7b1e3df15c2fc0ca52b.tar.gz coredns-4ef53081c536a66acf77c7b1e3df15c2fc0ca52b.tar.zst coredns-4ef53081c536a66acf77c7b1e3df15c2fc0ca52b.zip |
middleware/file: Add CNAME chain support (#400)
Up till now we would only chase 1 CNAME. Spec requires we will chase
all. This PR add support for this. Up to 8 CNAMEs are chased (this
could be longer, by just checking for cycles, but 8 seems enough for
now).
Also add RRSIG of the first CNAME for DNSSEC.
Diffstat (limited to 'middleware/file/ds_test.go')
-rw-r--r-- | middleware/file/ds_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middleware/file/ds_test.go b/middleware/file/ds_test.go index a7ba06263..b89c0e15c 100644 --- a/middleware/file/ds_test.go +++ b/middleware/file/ds_test.go @@ -54,7 +54,7 @@ var dsTestCases = []test.Case{ func TestLookupDS(t *testing.T) { zone, err := Parse(strings.NewReader(dbMiekNLDelegation), testzone, "stdin") if err != nil { - t.Fatalf("expect no error when reading zone, got %q", err) + t.Fatalf("Expected no error when reading zone, got %q", err) } fm := File{Next: test.ErrorHandler(), Zones: Zones{Z: map[string]*Zone{testzone: zone}, Names: []string{testzone}}} @@ -66,7 +66,7 @@ func TestLookupDS(t *testing.T) { rec := dnsrecorder.New(&test.ResponseWriter{}) _, err := fm.ServeDNS(ctx, rec, m) if err != nil { - t.Errorf("expected no error, got %v\n", err) + t.Errorf("Expected no error, got %v\n", err) return } |