class Resolv::DNS::Resource::IN::ServiceBinding - Documentation for Ruby 3.4
Description: class Resolv::DNS::Resource::IN::ServiceBinding: Common implementation for SVCB-compatible resource records.
Keywords: ruby,class,Resolv::DNS::Resource::IN::ServiceBinding

# class Resolv::DNS::Resource::IN::ServiceBinding

Common implementation for SVCB-compatible resource records.

### Attributes

params [R]

The service parameters for the target host.

priority [R]

The priority of this target host.

The range is 0-65535. If set to 0, this RR is in AliasMode. Otherwise, it is in ServiceMode.

target [R]

The domain name of the target host.

### Public Class Methods

new (priority, target, params = [])
Source

    # File lib/resolv.rb, line 2851
    def initialize(priority, target, params = [])
      @priority = priority.to_int
      @target = Name.create(target)
      @params = SvcParams.new(params)
    end

Create a service binding resource record.

### Public Instance Methods

alias_mode? ()
Source

    # File lib/resolv.rb, line 2878
    def alias_mode?
      self.priority == 0
    end

Whether this RR is in AliasMode.

service_mode? ()
Source

    # File lib/resolv.rb, line 2885
    def service_mode?
      !alias_mode?
    end

Whether this RR is in ServiceMode.