mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Better validate NAMESERVER format. (#350)
* remove misleading ip field we don't touch
This commit is contained in:
committed by
Tom Limoncelli
parent
139f4fe1ed
commit
2a7b382767
@ -78,6 +78,7 @@ func TestErrors(t *testing.T) {
|
||||
{"CF_TEMP_REDIRECT With comma", `D("foo.com","reg",CF_TEMP_REDIRECT("foo.com","baa,a"))`},
|
||||
{"Bad cidr", `D(reverse("foo.com"), "reg")`},
|
||||
{"Dup domains", `D("example.org", "reg"); D("example.org", "reg")`},
|
||||
{"Bad NAMESERVER", `D("example.com","reg", NAMESERVER("@","ns1.foo.com."))`},
|
||||
}
|
||||
for _, tst := range tests {
|
||||
t.Run(tst.desc, func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user