We are using embedding
This commit is contained in:
parent
af286fb157
commit
26d5a3260e
|
@ -48,7 +48,7 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
localm = new(dns.Msg)
|
||||
localm.MsgHdr.RecursionDesired = true
|
||||
localm.RecursionDesired = true
|
||||
localm.Question = make([]dns.Question, 1)
|
||||
localc = new(dns.Client)
|
||||
localc.ReadTimeout = TIMEOUT * 1e9
|
||||
|
@ -62,7 +62,7 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
m := new(dns.Msg)
|
||||
m.MsgHdr.RecursionDesired = false
|
||||
m.RecursionDesired = false
|
||||
m.Question = make([]dns.Question, 1)
|
||||
c := new(dns.Client)
|
||||
c.ReadTimeout = TIMEOUT * 1e9
|
||||
|
@ -138,7 +138,7 @@ func main() {
|
|||
rsoa := soa.Answer[0]
|
||||
switch rsoa.(type) {
|
||||
case *dns.SOA:
|
||||
if soa.MsgHdr.Authoritative {
|
||||
if soa.Authoritative {
|
||||
// TODO: test if all name servers have the same serial ?
|
||||
fmt.Printf("%s (%d) ", ips, rsoa.(*dns.SOA).Serial)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue