A DNSResourceRecord object represents a resource record in the DNS.
Creating a DNSResourceRecord is done with the newDRR().
DNSResourceRecord¶newDRR(name, type, ttl, content[, domainId[, auth]]) → DNSResourceRecord¶Returns a new DNSResourceRecord object.
| Parameters: |
|
|---|
name = newDN("www.example.org.")
rr = new DRR(name, "IN", 3600, )
DNSResourceRecord¶A DNSResourceRecord object represents a DNS record.
DNSResourceRecord:toString() -> stringReturns the full content of the record as a string
DNSResourceRecord:qname() -> DNSNameReturns the name of the record
DNSResourceRecord:wildcardName() -> DNSNameReturns the wildcard name of the record that the record was matched against
DNSResourceRecord:content() -> stringReturns what the record points to
DNSResourceRecord:lastModified() -> intIf non-zero, last time this record was changed
DNSResourceRecord:ttl() -> intTTL (Time To Live) of this record
DNSResourceRecord:signttl() -> intIf non-zero, TTL that will be used in the RRSIG of the record
DNSResourceRecord:domainId() -> intBackend related domain ID of the zone to which the record belongs
DNSResourceRecord:qtype() -> intType of the record (A, CNAME, MX, …)
DNSResourceRecord:qclass() -> intClass of the record (IN, CH, …)
DNSResourceRecord:scopeMask() -> intDNSResourceRecord:auth() -> boolDNSResourceRecord:disabled() -> bool