DNSRecord class
Constructors
- DNSRecord({required int ttl, required String type, required String host, required String value})
- DNSRecord.blank()
-
Returns Blank Record
factory
- DNSRecord.fromJson(dynamic json)
-
Creates Record From JSON
factory
- DNSRecord.newAuth({required String prefix, required String name, required String fingerprint})
-
Creates New
Auth
Record from AuthResponsefactory - DNSRecord.newName({required String publicKey, required String name})
-
Creates New
Name
Record from AuthResponsefactory
Properties
- fingerprint → Uint8List
-
Returns the fingerprint for this record.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- host ↔ String
-
Record hostname
getter/setter pair
- isAuth → bool
-
Checks if this record is a
Auth
Type Recordno setter - isBlank → bool
-
Checks if this record is blank
no setter
- isName → bool
-
Checks if this record is a
Name
Type Recordno setter - isNotBlank → bool
-
Checks if this record is NOT blank
no setter
- name → String
-
Returns Record SName by Record Type
no setter
- prefix → String
-
Returns Prefix from this Record
no setter
- publicKey → String
-
Returns Public Key from this Record
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ttl ↔ int
-
Record TTL (Time to Live) in Seconds
getter/setter pair
- type ↔ String
-
Record type (e.g. A, CNAME, MX, TXT, etc.)
getter/setter pair
- value ↔ String
-
Record value (e.g. publicKey, fingerprint, etc.)
getter/setter pair
Methods
-
equals(
String n, String p) → bool -
Checks if this Record has a VALID
fingerprint
-
equalsName(
String n) → bool -
Checks if this Record EQUALS given
name
-
equalsPrefix(
String p) → bool -
Checks if this Record EQUALS equal given
prefix
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEquals(
String n, String p) → bool -
Checks if this Record has a INVALID
fingerprint
-
notEqualsName(
String n) → bool -
Checks if this Record DOES NOT equal given
name
-
notEqualsPrefix(
String p) → bool -
Checks if this Record DOES NOT equal given
prefix
-
toMap(
) → Map< String, dynamic> - Converts Record to Map for REST API
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
extractFingerprint(
String value) → Uint8List - Extracts FingerPrint from Record Value
-
extractName(
String host) → String - Extracts Name from Record Host
-
extractPrefix(
String host) → String - Extracts Prefix from Record Host
-
newRegisteredRecords(
{required String prefix, required String name, required String fingerprint, required String publicKey}) → List< DNSRecord> -
Returns Auth/Name Record from AuthResponse
0
- AuthRecord1
- NameRecord