End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Resolv::DNS::Resource::MX.new
new(preference, exchange)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/resolv.rb, line 1986
def initialize(preference, exchange)
@preference = preference
@exchange = exchange
end
Creates a new MX record with preference, accepting mail at exchange.