Permalink
Browse files

Use dns.Fqdn

  • Loading branch information...
1 parent 3e4edb1 commit a00ee02cea2b1cb885e1128e2821a3431338c9b2 @miekg miekg committed Dec 23, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −4 check-soa.go
View
@@ -347,10 +347,7 @@ func main() {
flag.Usage()
os.Exit(0)
}
- zone := flag.Arg(0)
- if zone[len(zone)-1] != '.' {
- zone += "."
- }
+ zone := dns.Fqdn(flag.Arg(0))
conf, err = dns.ClientConfigFromFile("/etc/resolv.conf")
if conf == nil {
fmt.Printf("Cannot initialize the local resolver: %s\n", err)

0 comments on commit a00ee02

Please sign in to comment.