Fix rootname print in q section

This commit is contained in:
Miek Gieben 2011-12-20 11:45:31 +01:00
parent cbdab03c16
commit 5d99c04ac3
1 changed files with 3 additions and 0 deletions

3
dns.go
View File

@ -205,6 +205,9 @@ func zoneMatch(pattern, zone string) (ok bool) {
if len(pattern) == 0 {
return
}
if len(zone) == 0 {
zone = "."
}
if pattern[len(pattern)-1] != '.' {
pattern += "."
}