Think its working now
This commit is contained in:
parent
f05b532a3f
commit
17af20cd88
11
ex/q/q.go
11
ex/q/q.go
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue