Class: Resolv::DNS::Resource::SOA
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| 
         Class Chain: 
        
       | 
    |
| 
         Instance Chain: 
        
       | 
    |
| Inherits: | 
        Resolv::DNS::Resource
        
  | 
    
| Defined in: | lib/resolv.rb | 
Overview
Start Of Authority resource.
Constant Summary
- 
    TypeValue =
    Internal use only
    
# File 'lib/resolv.rb', line 18286 
::Resolv::DNS::Resource - Inherited
  
Class Method Summary
- 
    
      .new(mname, rname, serial, refresh, retry_, expire, minimum)  ⇒ SOA 
    
    constructor
    
Creates a new
SOArecord. - .decode_rdata(msg) Internal use only
 
::Resolv::DNS::Resource - Inherited
::Resolv::DNS::Query - Inherited
Instance Attribute Summary
- 
    
      #expire  
    
    readonly
    
Time in seconds that a secondary name server is to use the data before refreshing from the primary name server.
 - 
    
      #minimum  
    
    readonly
    
The minimum number of seconds to be used for TTL values in RRs.
 - 
    
      #mname  
    
    readonly
    
::Resolv::DNS::Nameof the host where the master zone file for this zone resides. - 
    
      #refresh  
    
    readonly
    
How often, in seconds, a secondary name server is to check for updates from the primary name server.
 - 
    
      #retry  
    
    readonly
    
How often, in seconds, a secondary name server is to retry after a failure to check for a refresh.
 - 
    
      #rname  
    
    readonly
    
The person responsible for this domain name.
 - 
    
      #serial  
    
    readonly
    
The version number of the zone file.
 
::Resolv::DNS::Resource - Inherited
| #ttl | Remaining Time To Live for this   | 
    
Instance Method Summary
- #encode_rdata(msg) Internal use only
 
::Resolv::DNS::Resource - Inherited
::Resolv::DNS::Query - Inherited
Constructor Details
    .new(mname, rname, serial, refresh, retry_, expire, minimum)  ⇒ SOA 
  
Creates a new SOA record.  See the attr documentation for the details of each argument.
Class Method Details
.decode_rdata(msg)
Instance Attribute Details
#expire (readonly)
Time in seconds that a secondary name server is to use the data before refreshing from the primary name server.
# File 'lib/resolv.rb', line 1875
attr_reader :expire
#minimum (readonly)
The minimum number of seconds to be used for TTL values in RRs.
# File 'lib/resolv.rb', line 1880
attr_reader :minimum
#mname (readonly)
::Resolv::DNS::Name of the host where the master zone file for this zone resides.
# File 'lib/resolv.rb', line 1847
attr_reader :mname
#refresh (readonly)
How often, in seconds, a secondary name server is to check for updates from the primary name server.
# File 'lib/resolv.rb', line 1863
attr_reader :refresh
#retry (readonly)
How often, in seconds, a secondary name server is to retry after a failure to check for a refresh.
# File 'lib/resolv.rb', line 1869
attr_reader :retry
#rname (readonly)
The person responsible for this domain name.
# File 'lib/resolv.rb', line 1852
attr_reader :rname
#serial (readonly)
The version number of the zone file.
# File 'lib/resolv.rb', line 1857
attr_reader :serial
Instance Method Details
#encode_rdata(msg)
# File 'lib/resolv.rb', line 1882
def encode_rdata(msg) # :nodoc: msg.put_name(@mname) msg.put_name(@rname) msg.put_pack('NNNNN', @serial, @refresh, @retry, @expire, @minimum) end