Parent

Net::DNS::RR::MX

Mail Exchange Record (MX)

Class for DNS MX resource records.

A MX record specifies the name and relative preference of mail servers (mail exchangers in the DNS jargon) for the zone. The MX RR is used by SMTP (Mail) Agents to route mail for the domain.

Public Instance Methods

exchange() click to toggle source

Gets the exchange value.

Returns a String.

# File lib/net/dns/rr/mx.rb, line 26
def exchange
  @exchange
end
preference() click to toggle source

Gets the preference value.

Returns an Integer.

# File lib/net/dns/rr/mx.rb, line 19
def preference
  @preference
end
value() click to toggle source

Gets the standardized value for this record, represented by the value of preference and exchange.

Returns a String.

# File lib/net/dns/rr/mx.rb, line 34
def value
  "#{preference} #{exchange}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.