Class: Resolv::DNS::Resource::SOA
- Inherits:
-
Resolv::DNS::Resource
- Object
- Query
- Resolv::DNS::Resource
- Resolv::DNS::Resource::SOA
- Defined in:
- lib/resolv.rb
Overview
Start Of Authority resource.
Constant Summary collapse
- TypeValue =
:nodoc:
6
Constants inherited from Resolv::DNS::Resource
ClassHash, ClassInsensitiveTypes, ClassValue
Instance Attribute Summary collapse
-
#expire ⇒ Object
readonly
Time in seconds that a secondary name server is to use the data before refreshing from the primary name server.
-
#minimum ⇒ Object
readonly
The minimum number of seconds to be used for TTL values in RRs.
-
#mname ⇒ Object
readonly
Name of the host where the master zone file for this zone resides.
-
#refresh ⇒ Object
readonly
How often, in seconds, a secondary name server is to check for updates from the primary name server.
-
#retry ⇒ Object
readonly
How often, in seconds, a secondary name server is to retry after a failure to check for a refresh.
-
#rname ⇒ Object
readonly
The person responsible for this domain name.
-
#serial ⇒ Object
readonly
The version number of the zone file.
Attributes inherited from Resolv::DNS::Resource
Class Method Summary collapse
-
.decode_rdata(msg) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#encode_rdata(msg) ⇒ Object
:nodoc:.
-
#initialize(mname, rname, serial, refresh, retry_, expire, minimum) ⇒ SOA
constructor
Creates a new SOA record.
Methods inherited from Resolv::DNS::Resource
Constructor Details
#initialize(mname, rname, serial, refresh, retry_, expire, minimum) ⇒ SOA
Creates a new SOA record. See the attr documentation for the details of each argument.
1561 1562 1563 1564 1565 1566 1567 1568 1569 |
# File 'lib/resolv.rb', line 1561 def initialize(mname, rname, serial, refresh, retry_, expire, minimum) @mname = mname @rname = rname @serial = serial @refresh = refresh @retry = retry_ @expire = expire @minimum = minimum end |
Instance Attribute Details
#expire ⇒ Object (readonly)
Time in seconds that a secondary name server is to use the data before refreshing from the primary name server.
1602 1603 1604 |
# File 'lib/resolv.rb', line 1602 def expire @expire end |
#minimum ⇒ Object (readonly)
The minimum number of seconds to be used for TTL values in RRs.
1607 1608 1609 |
# File 'lib/resolv.rb', line 1607 def minimum @minimum end |
#mname ⇒ Object (readonly)
Name of the host where the master zone file for this zone resides.
1574 1575 1576 |
# File 'lib/resolv.rb', line 1574 def mname @mname end |
#refresh ⇒ Object (readonly)
How often, in seconds, a secondary name server is to check for updates from the primary name server.
1590 1591 1592 |
# File 'lib/resolv.rb', line 1590 def refresh @refresh end |
#retry ⇒ Object (readonly)
How often, in seconds, a secondary name server is to retry after a failure to check for a refresh.
1596 1597 1598 |
# File 'lib/resolv.rb', line 1596 def retry @retry end |
#rname ⇒ Object (readonly)
The person responsible for this domain name.
1579 1580 1581 |
# File 'lib/resolv.rb', line 1579 def rname @rname end |
#serial ⇒ Object (readonly)
The version number of the zone file.
1584 1585 1586 |
# File 'lib/resolv.rb', line 1584 def serial @serial end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
1615 1616 1617 1618 1619 1620 1621 |
# File 'lib/resolv.rb', line 1615 def self.decode_rdata(msg) # :nodoc: mname = msg.get_name rname = msg.get_name serial, refresh, retry_, expire, minimum = msg.get_unpack('NNNNN') return self.new( mname, rname, serial, refresh, retry_, expire, minimum) end |
Instance Method Details
#encode_rdata(msg) ⇒ Object
:nodoc:
1609 1610 1611 1612 1613 |
# File 'lib/resolv.rb', line 1609 def encode_rdata(msg) # :nodoc: msg.put_name(@mname) msg.put_name(@rname) msg.put_pack('NNNNN', @serial, @refresh, @retry, @expire, @minimum) end |