A DNSRecord object represents a record.
Creating a DNSRecord is done with the newDR().
DNSRecord¶newDR(name, type, ttl, content, place) → DNSRecord¶Returns a new DNSRecord object.
| Parameters: |
|
|---|
DNSRecord¶A DNSRecord object represents a DNS record.
place¶The place where the record is located, you can use the following constants
ttl¶The TTL of the record
type¶The type of the record (as an integer). Can for example be compared to pdns.A
DNSRecord:getContent() -> stringReturn a string representation of the record content
DNSRecord:getCA() -> ComboAddressIf the record type is A or AAAA, a ComboAddress representing the content is returned, nil otherwise
DNSRecord:changeContent(newcontent)Replace the record content with newcontent.
The type and class cannot be changed.
| Parameters: | newcontent (str) – The replacing content |
|---|