Go comments
This commit is contained in:
parent
48c41f56c9
commit
b90e2e85d6
|
@ -123,7 +123,7 @@ func main() {
|
||||||
success = false
|
success = false
|
||||||
fmt.Printf("%s (%s) ", ips, dns.Rcode_str[soa.Rcode])
|
fmt.Printf("%s (%s) ", ips, dns.Rcode_str[soa.Rcode])
|
||||||
} else {
|
} else {
|
||||||
if len(soa.Answer) == 0 { /* May happen if the server is a recursor, not authoritative, since we query with RD=0 */
|
if len(soa.Answer) == 0 { // May happen if the server is a recursor, not authoritative, since we query with RD=0
|
||||||
success = false
|
success = false
|
||||||
fmt.Printf("%s (0 answer) ", ip)
|
fmt.Printf("%s (0 answer) ", ip)
|
||||||
} else {
|
} else {
|
||||||
|
@ -131,7 +131,7 @@ func main() {
|
||||||
switch rsoa.(type) {
|
switch rsoa.(type) {
|
||||||
case *dns.RR_SOA:
|
case *dns.RR_SOA:
|
||||||
if soa.MsgHdr.Authoritative {
|
if soa.MsgHdr.Authoritative {
|
||||||
/* TODO: test if all name servers have the same serial ? */
|
// TODO: test if all name servers have the same serial ?
|
||||||
fmt.Printf("%s (%d) ", ips, rsoa.(*dns.RR_SOA).Serial)
|
fmt.Printf("%s (%d) ", ips, rsoa.(*dns.RR_SOA).Serial)
|
||||||
} else {
|
} else {
|
||||||
success = false
|
success = false
|
||||||
|
|
Loading…
Reference in New Issue