-
The
new
method of theNet::DNS::Resolver
class returning aNet::DNS::Resolver
object -
The
query
method of theNet::DNS::Resolver
class returning aNet::DNS::Packet
object -
The
answer
method ofNet::DNS::Packet
class returning a list ofNet::DNS::RR
objects -
The
type
method: of theNet::DNS::RR
class returning a standard DNS record type string -
The
nsdname
method of theNet::DNS::RR::NS
class returning a domain string
Get the packet with query
, and then records from the packet with answer
, check the record's type to get the appropriate value (eg. with nsdname
).