Add parse test for octects in the name

This commit is contained in:
Miek Gieben 2012-11-15 09:39:32 +01:00
parent 301cfde8e5
commit 43cadb2ffd
1 changed files with 9 additions and 0 deletions

View File

@ -625,3 +625,12 @@ func TestSRVPacking(t *testing.T) {
t.Fatalf("Couldn't pack %v\n", msg)
}
}
func TestParseBackslash(t *testing.T) {
r, e := NewRR("nul\\000gap.test.globnix.net. 600 IN A 192.0.2.10")
if e != nil {
t.Fatalf("Could not create RR with \\000 in it")
} else {
t.Logf("Parsed %s\n", r.String())
}
}