DnsUtils class

Helper class for dns record lookups

Constructors

DnsUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getReverseAddr(String ip) String?
Reverses the given ip address. Will return null if the given ip is not an IP address.
intToRRecordType(int type) RRecordType
Converts the given number type to a RRecordType enum.
lookupRecord(String name, RRecordType type, {bool dnssec = false, DnsApiProvider provider = DnsApiProvider.GOOGLE}) Future<List<RRecord>?>
Lookup for records of the given type and name. It also supports dnssec
reverseDns(String ip, {DnsApiProvider provider = DnsApiProvider.GOOGLE}) Future<List<RRecord>?>
Reverse lookup for the given ip to determine a hostname.
rRecordTypeToInt(RRecordType type) int
Converts the given type to a decimal number
toBind(RRecord record) String
Converts the record to the BIND representation.