| Class | Resolv::DNS::Resource::IN::SRV |
| In: |
lib/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 lib/resolv.rb, line 1701
1701: def self.decode_rdata(msg)
1702: priority, = msg.get_unpack("n")
1703: weight, = msg.get_unpack("n")
1704: port, = msg.get_unpack("n")
1705: target = msg.get_name
1706: return self.new(priority, weight, port, target)
1707: end