In Files

  • ruby-3.1.2/lib/resolv.rb

Methods

Files

Class/Module Index [+]

Quicksearch

Resolv::DNS::Resource::MX

Mail Exchanger resource.

Attributes

exchange[R]

The host of this MX.

preference[R]

The preference for this MX.

Public Class Methods

new(preference, exchange) click to toggle source

Creates a new MX record with preference, accepting mail at exchange.

 
               # File ruby-3.1.2/lib/resolv.rb, line 1986
def initialize(preference, exchange)
  @preference = preference
  @exchange = exchange
end