Class: Gem::Resolv::DNS::Resource::SOA
- Inherits:
-
Gem::Resolv::DNS::Resource
- Object
- Query
- Gem::Resolv::DNS::Resource
- Gem::Resolv::DNS::Resource::SOA
- Defined in:
- lib/rubygems/vendor/resolv/lib/resolv.rb
Overview
Start Of Authority resource.
Constant Summary collapse
- TypeValue =
:nodoc:
6
Constants inherited from Gem::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 Gem::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 Gem::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.
2230 2231 2232 2233 2234 2235 2236 2237 2238 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2230 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.
2271 2272 2273 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2271 def expire @expire end |
#minimum ⇒ Object (readonly)
The minimum number of seconds to be used for TTL values in RRs.
2276 2277 2278 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2276 def minimum @minimum end |
#mname ⇒ Object (readonly)
Name of the host where the master zone file for this zone resides.
2243 2244 2245 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2243 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.
2259 2260 2261 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2259 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.
2265 2266 2267 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2265 def retry @retry end |
#rname ⇒ Object (readonly)
The person responsible for this domain name.
2248 2249 2250 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2248 def rname @rname end |
#serial ⇒ Object (readonly)
The version number of the zone file.
2253 2254 2255 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2253 def serial @serial end |
Class Method Details
.decode_rdata(msg) ⇒ Object
:nodoc:
2284 2285 2286 2287 2288 2289 2290 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2284 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:
2278 2279 2280 2281 2282 |
# File 'lib/rubygems/vendor/resolv/lib/resolv.rb', line 2278 def encode_rdata(msg) # :nodoc: msg.put_name(@mname) msg.put_name(@rname) msg.put_pack('NNNNN', @serial, @refresh, @retry, @expire, @minimum) end |