small fixes

This commit is contained in:
Miek Gieben 2011-04-18 19:52:41 +02:00
parent 1cc16f01c8
commit bce6b62bc0
1 changed files with 0 additions and 2 deletions

View File

@ -12,7 +12,6 @@ func main() {
flag.Parse()
zone := flag.Arg(flag.NArg() - 1)
// only UDP works atm
client := dns.NewClient()
client.Net = "tcp"
m := new(dns.Msg)
@ -21,7 +20,6 @@ func main() {
} else {
m.SetAxfr(zone)
}
fmt.Printf("%v\n", m)
axfr, err := client.XfrReceive(m, *nameserver)
if err != nil {
println(err.String())