Think its working now

This commit is contained in:
Miek Gieben 2012-08-08 11:25:03 +02:00
parent f05b532a3f
commit 17af20cd88
1 changed files with 5 additions and 6 deletions

View File

@ -202,6 +202,7 @@ Flags:
os.Exit(0) os.Exit(0)
} }
}() }()
Redo:
if r == nil { if r == nil {
return return
} }
@ -221,17 +222,15 @@ Flags:
o.Hdr.Rrtype = dns.TypeOPT o.Hdr.Rrtype = dns.TypeOPT
o.SetUDPSize(dns.DefaultMsgSize) o.SetUDPSize(dns.DefaultMsgSize)
m.Extra = append(m.Extra, o) m.Extra = append(m.Extra, o)
r, rtt, e = c.ExchangeRtt(m, nameserver)
*dnssec = true *dnssec = true
// This does not work yet goto Redo
//c.Do(m, nameserver)
return
} else { } else {
// First EDNS, then TCP // First EDNS, then TCP
fmt.Printf(";; Truncated, trying TCP\n") fmt.Printf(";; Truncated, trying TCP\n")
c.Net = "tcp" c.Net = "tcp"
// This not work yet r, rtt, e = c.ExchangeRtt(m, nameserver)
// c.Do(m, nameserver) goto Redo
return
} }
} }
} }