| Class | Resolv::DNS::Resource::IN::SRV |
| In: |
resolv.rb
|
| Parent: | Resource |
SRV resource record defined in RFC 2782
These records identify the hostname and port that a service is available at.
The format is:
_Service._Proto.Name TTL Class SRV Priority Weight Port Target
The fields specific to SRV are defined in RFC 2782 as meaning:
| TypeValue | = | 33, ClassValue = ClassValue]] = self |
| port | [R] | |
| priority | [R] | |
| target | [R] | |
| weight | [R] |
# File resolv.rb, line 1701 def self.decode_rdata(msg) priority, = msg.get_unpack("n") weight, = msg.get_unpack("n") port, = msg.get_unpack("n") target = msg.get_name return self.new(priority, weight, port, target) end