|
libtins 4.5
|
Class that represents a Start Of Authority record. More...
#include <dns.h>
Public Member Functions | |
| soa_record () | |
| Default constructor. | |
| soa_record (const DNS::resource &resource) | |
| Constructs a SOA record from a DNS::resource. | |
| soa_record (const uint8_t *buffer, uint32_t total_sz) | |
| Constructs a SOA record from a buffer. | |
| soa_record (const std::string &mname, const std::string &rname, uint32_t serial, uint32_t refresh, uint32_t retry, uint32_t expire, uint32_t minimum_ttl) | |
| Constructs a SOA record. | |
| const std::string & | mname () const |
| Getter for the primary source name field. | |
| const std::string & | rname () const |
| Getter for the responsible person name field. | |
| uint32_t | serial () const |
| Getter for the serial number field. | |
| uint32_t | refresh () const |
| Getter for the refresh field. | |
| uint32_t | retry () const |
| Getter for the retry field. | |
| uint32_t | expire () const |
| Getter for the expire field. | |
| uint32_t | minimum_ttl () const |
| Getter for the minimum TTL field. | |
| void | mname (const std::string &value) |
| Getter for the primary source name field. | |
| void | rname (const std::string &value) |
| Getter for the responsible person name field. | |
| void | serial (uint32_t value) |
| Getter for the serial number field. | |
| void | refresh (uint32_t value) |
| Getter for the refresh field. | |
| void | retry (uint32_t value) |
| Getter for the retry field. | |
| void | expire (uint32_t value) |
| Getter for the expire field. | |
| void | minimum_ttl (uint32_t value) |
| Getter for the minimum TTL field. | |
| PDU::serialization_type | serialize () const |
| Serialize this SOA record. | |
Class that represents a Start Of Authority record.
| Tins::DNS::soa_record::soa_record | ( | const DNS::resource & | resource | ) |
Constructs a SOA record from a DNS::resource.
| resource | The resource from which to construct this record |
Constructs a SOA record from a buffer.
| buffer | The buffer from which to construct this SOA record |
| total_sz | The size of the buffer |
| Tins::DNS::soa_record::soa_record | ( | const std::string & | mname, |
| const std::string & | rname, | ||
| uint32_t | serial, | ||
| uint32_t | refresh, | ||
| uint32_t | retry, | ||
| uint32_t | expire, | ||
| uint32_t | minimum_ttl ) |
Constructs a SOA record.
| mname | The primary source name |
| rname | The responsible person name |
| serial | The serial number |
| refresh | The refresh value |
| retry | The retry value |
| expire | The expire value |
| minimum_ttl | The minimum TTL value |
|
inline |
Getter for the expire field.
Getter for the expire field.
| value | The new expire field value |
|
inline |
Getter for the minimum TTL field.
Getter for the minimum TTL field.
| value | The new minimum TTL field value |
|
inline |
Getter for the primary source name field.
The returned domain name is already decoded.
Getter for the primary source name field.
| value | The new primary source name field value |
|
inline |
Getter for the refresh field.
Getter for the refresh field.
| value | The new refresh field value |
|
inline |
Getter for the retry field.
Getter for the retry field.
| value | The new retry field value |
|
inline |
Getter for the responsible person name field.
The returned domain name is already decoded.
Getter for the responsible person name field.
| value | The new responsible person name field value |
|
inline |
Getter for the serial number field.
Getter for the serial number field.
| value | The new serial number field value |
| PDU::serialization_type Tins::DNS::soa_record::serialize | ( | ) | const |
Serialize this SOA record.