feat(client): Add support for PTR DNS records (#886)
Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
@ -321,6 +321,10 @@ func QueryDNS(queryType, queryName, url string) (connected bool, dnsRcode string
|
||||
if ns, ok := rr.(*dns.NS); ok {
|
||||
body = []byte(ns.Ns)
|
||||
}
|
||||
case dns.TypePTR:
|
||||
if ptr, ok := rr.(*dns.PTR); ok {
|
||||
body = []byte(ptr.Ptr)
|
||||
}
|
||||
default:
|
||||
body = []byte("query type is not supported yet")
|
||||
}
|
||||
|
Reference in New Issue
Block a user