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.
1640 1641 1642 1643 1644 1645 1646 1647 1648 |
# File 'lib/resolv.rb', line 1640 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.
1681 1682 1683 |
# File 'lib/resolv.rb', line 1681 def expire @expire end |
#minimum ⇒ Object (readonly)
The minimum number of seconds to be used for TTL values in RRs.
1686 1687 1688 |
# File 'lib/resolv.rb', line 1686 def minimum @minimum end |
#mname ⇒ Object (readonly)
Name of the host where the master zone file for this zone resides.
1653 1654 1655 |
# File 'lib/resolv.rb', line 1653 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.
1669 1670 1671 |
# File 'lib/resolv.rb', line 1669 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.
1675 1676 1677 |
# File 'lib/resolv.rb', line 1675 def retry @retry end |
#rname ⇒ Object (readonly)
The person responsible for this domain name.
1658 1659 1660 |
# File 'lib/resolv.rb', line 1658 def rname @rname end |
#serial ⇒ Object (readonly)
The version number of the zone file.
1663 1664 1665 |
# File 'lib/resolv.rb', line 1663 def serial @serial end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
1694 1695 1696 1697 1698 1699 1700 |
# File 'lib/resolv.rb', line 1694 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:
1688 1689 1690 1691 1692 |
# File 'lib/resolv.rb', line 1688 def encode_rdata(msg) # :nodoc: msg.put_name(@mname) msg.put_name(@rname) msg.put_pack('NNNNN', @serial, @refresh, @retry, @expire, @minimum) end |