class Resolv::DNS::Resource::IN::SRV
Public Class Methods
(Resolv::DNS::Message::MessageDecoder msg) → instance
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1034
def self.decode_rdata: (Resolv::DNS::Message::MessageDecoder msg) -> instance
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1086
def initialize: (Integer priority, Integer weight, Integer port, String target) -> untyped
Public Instance Methods
(Resolv::DNS::Message::MessageEncoder msg) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1036
def encode_rdata: (Resolv::DNS::Message::MessageEncoder msg) -> void
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1043
def port: () -> Integer
The port on this target host of this service.
The range is 0-65535.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1053
def priority: () -> Integer
The priority of this target host.
A client MUST attempt to contact the target host with the lowest-numbered priority it can reach; target hosts with the same priority SHOULD be tried in an order defined by the weight field. The range is 0-65535. Note that it is not widely implemented and should be set to zero.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1061
def target: () -> String
The domain name of the target host.
A target of β.β means that the service is decidedly not available at this domain.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/resolv/0/resolv.rbs, line 1073
def weight: () -> Integer
A server selection mechanism.
The weight field specifies a relative weight for entries with the same priority. Larger weights SHOULD be given a proportionately higher probability of being selected. The range of this number is 0-65535. Domain administrators SHOULD use Weight 0 when there isnβt any server selection to do, to make the RR easier to read for humans (less noisy). Note that it is not widely implemented and should be set to zero.