pdns  4.5.1
About: PowerDNS daemon - a high performance authoritative nameserver.
  Fossies Dox: pdns-4.5.1.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

DNSResourceRecord Class Reference

This class represents a resource record. More...

#include <dns.hh>

Inheritance diagram for DNSResourceRecord:
[legend]
Collaboration diagram for DNSResourceRecord:
[legend]

Public Types

enum  Place : uint8_t { QUESTION =0 , ANSWER =1 , AUTHORITY =2 , ADDITIONAL =3 }
 

Public Member Functions

 DNSResourceRecord ()
 
void setContent (const string &content)
  More...
 
string getZoneRepresentation (bool noDot=false) const
  More...
 
bool operator== (const DNSResourceRecord &rhs)
  More...
 
bool operator< (const DNSResourceRecord &b) const
  More...
 

Static Public Member Functions

static DNSResourceRecord fromWire (const DNSRecord &d)
  More...
 

Public Attributes

DNSName qname
 the name of this record, for example: www.powerdns.com More...
 
DNSName ordername
  More...
 
DNSName wildcardname
  More...
 
string content
 what this record points to. Example: 10.1.2.3 More...
 
time_t last_modified
 For autocalculating SOA serial numbers - the backend needs to fill this in. More...
 
uint32_t ttl
 Time To Live of this record. More...
 
uint32_t signttl
 If non-zero, use this TTL as original TTL in the RRSIG. More...
 
int domain_id
 If a backend implements this, the domain_id of the zone this record is in. More...
 
QType qtype
 qtype of this record, ie A, CNAME, MX etc More...
 
uint16_t qclass
 class of this record More...
 
uint8_t scopeMask
  More...
 
bool auth
  More...
 
bool disabled
  More...
 

Detailed Description

This class represents a resource record.

Definition at line 80 of file dns.hh.

Member Enumeration Documentation

◆ Place

enum DNSResourceRecord::Place : uint8_t
Enumerator
QUESTION 
ANSWER 
AUTHORITY 
ADDITIONAL 

Definition at line 86 of file dns.hh.


The documentation for this class was generated from the following files: