mirror of
https://github.com/coredns/coredns.git
synced 2026-10-09 03:55:21 -04:00
plugin/file: reject SOA owners that do not match the zone (#8555)
Signed-off-by: houyuwushang <liuluoqianqiu@outlook.com>
This commit is contained in:
@@ -10,11 +10,12 @@ import (
|
||||
func TestNames(t *testing.T) {
|
||||
f, err := os.Open("testdata/db.miek.nl_ns")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
t.Fatal(err)
|
||||
}
|
||||
z, err := file.Parse(f, "db.miek.nl_ns", "miek.nl", 0)
|
||||
defer f.Close()
|
||||
z, err := file.Parse(f, "miek.nl.", "testdata/db.miek.nl_ns", 0)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
names := names("miek.nl.", z)
|
||||
|
||||
Reference in New Issue
Block a user