Class that represents a Start Of Authority record.  
 More...
#include <dns.h>
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. 
- Parameters
 - 
  
    | resource | The resource from which to construct this record  | 
  
   
 
 
      
        
          | 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  | 
  
   
 
 
      
        
          | 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  | 
  
   
 
 
  
  
      
        
          | uint32_t Tins::DNS::soa_record::expire  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Getter for the expire field. 
- Returns
 - The expire field 
 
 
 
      
        
          | void Tins::DNS::soa_record::expire  | 
          ( | 
          uint32_t  | 
          value | ) | 
           | 
        
      
 
Getter for the expire field. 
- Parameters
 - 
  
    | value | The new expire field value  | 
  
   
 
 
  
  
      
        
          | uint32_t Tins::DNS::soa_record::minimum_ttl  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Getter for the minimum TTL field. 
- Returns
 - The minimum TTL field 
 
 
 
      
        
          | void Tins::DNS::soa_record::minimum_ttl  | 
          ( | 
          uint32_t  | 
          value | ) | 
           | 
        
      
 
Getter for the minimum TTL field. 
- Parameters
 - 
  
    | value | The new minimum TTL field value  | 
  
   
 
 
  
  
      
        
          | 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 
 
 
 
      
        
          | 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  | 
  
   
 
 
  
  
      
        
          | uint32_t Tins::DNS::soa_record::refresh  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Getter for the refresh field. 
- Returns
 - The refresh field 
 
 
 
      
        
          | void Tins::DNS::soa_record::refresh  | 
          ( | 
          uint32_t  | 
          value | ) | 
           | 
        
      
 
Getter for the refresh field. 
- Parameters
 - 
  
    | value | The new refresh field value  | 
  
   
 
 
  
  
      
        
          | uint32_t Tins::DNS::soa_record::retry  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Getter for the retry field. 
- Returns
 - The retry field 
 
 
 
      
        
          | void Tins::DNS::soa_record::retry  | 
          ( | 
          uint32_t  | 
          value | ) | 
           | 
        
      
 
Getter for the retry field. 
- Parameters
 - 
  
    | value | The new retry field value  | 
  
   
 
 
  
  
      
        
          | 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 
 
 
 
      
        
          | 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  | 
  
   
 
 
  
  
      
        
          | uint32_t Tins::DNS::soa_record::serial  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Getter for the serial number field. 
- Returns
 - The serial number field 
 
 
 
      
        
          | void Tins::DNS::soa_record::serial  | 
          ( | 
          uint32_t  | 
          value | ) | 
           | 
        
      
 
Getter for the serial number field. 
- Parameters
 - 
  
    | value | The new serial number field value  | 
  
   
 
 
Serialize this SOA record. 
- Returns
 - The serialized SOA record 
 
 
 
The documentation for this class was generated from the following files:
- /home/matias/Projects/libtins/code/include/tins/dns.h
 
- /home/matias/Projects/libtins/code/src/dns.cpp