Class that represents a Start Of Authority record.
More...
#include <dns.h>
|
| 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.
◆ soa_record() [1/3]
Tins::DNS::soa_record::soa_record |
( |
const DNS::resource & | resource | ) |
|
Constructs a SOA record from a DNS::resource.
- Parameters
-
resource | The resource from which to construct this record |
◆ soa_record() [2/3]
Tins::DNS::soa_record::soa_record |
( |
const uint8_t * | buffer, |
|
|
uint32_t | total_sz ) |
Constructs a SOA record from a buffer.
- Parameters
-
buffer | The buffer from which to construct this SOA record |
total_sz | The size of the buffer |
◆ soa_record() [3/3]
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.
- Parameters
-
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 |
◆ expire() [1/2]
uint32_t Tins::DNS::soa_record::expire |
( |
| ) |
const |
|
inline |
Getter for the expire field.
- Returns
- The expire field
◆ expire() [2/2]
void Tins::DNS::soa_record::expire |
( |
uint32_t | value | ) |
|
Getter for the expire field.
- Parameters
-
value | The new expire field value |
◆ minimum_ttl() [1/2]
uint32_t Tins::DNS::soa_record::minimum_ttl |
( |
| ) |
const |
|
inline |
Getter for the minimum TTL field.
- Returns
- The minimum TTL field
◆ minimum_ttl() [2/2]
void Tins::DNS::soa_record::minimum_ttl |
( |
uint32_t | value | ) |
|
Getter for the minimum TTL field.
- Parameters
-
value | The new minimum TTL field value |
◆ mname() [1/2]
const std::string & Tins::DNS::soa_record::mname |
( |
| ) |
const |
|
inline |
Getter for the primary source name field.
The returned domain name is already decoded.
- Returns
- mname The primary source name field
◆ mname() [2/2]
void Tins::DNS::soa_record::mname |
( |
const std::string & | value | ) |
|
Getter for the primary source name field.
- Parameters
-
value | The new primary source name field value |
◆ refresh() [1/2]
uint32_t Tins::DNS::soa_record::refresh |
( |
| ) |
const |
|
inline |
Getter for the refresh field.
- Returns
- The refresh field
◆ refresh() [2/2]
void Tins::DNS::soa_record::refresh |
( |
uint32_t | value | ) |
|
Getter for the refresh field.
- Parameters
-
value | The new refresh field value |
◆ retry() [1/2]
uint32_t Tins::DNS::soa_record::retry |
( |
| ) |
const |
|
inline |
Getter for the retry field.
- Returns
- The retry field
◆ retry() [2/2]
void Tins::DNS::soa_record::retry |
( |
uint32_t | value | ) |
|
Getter for the retry field.
- Parameters
-
value | The new retry field value |
◆ rname() [1/2]
const std::string & Tins::DNS::soa_record::rname |
( |
| ) |
const |
|
inline |
Getter for the responsible person name field.
The returned domain name is already decoded.
- Returns
- mname The responsible person name field
◆ rname() [2/2]
void Tins::DNS::soa_record::rname |
( |
const std::string & | value | ) |
|
Getter for the responsible person name field.
- Parameters
-
value | The new responsible person name field value |
◆ serial() [1/2]
uint32_t Tins::DNS::soa_record::serial |
( |
| ) |
const |
|
inline |
Getter for the serial number field.
- Returns
- The serial number field
◆ serial() [2/2]
void Tins::DNS::soa_record::serial |
( |
uint32_t | value | ) |
|
Getter for the serial number field.
- Parameters
-
value | The new serial number field value |
◆ serialize()
Serialize this SOA record.
- Returns
- The serialized SOA record
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libtins-4.5-build/libtins-4.5/include/tins/dns.h
- /builddir/build/BUILD/libtins-4.5-build/libtins-4.5/src/dns.cpp