mx_record

A mail exchanger record (MX record) is a type of resource record in the Domain Name System that specifies a mail server responsible for accepting email messages on behalf of a recipient’s domain, and a preference value used to prioritize mail delivery if multiple mail servers are available. The set of MX records of a domain name specifies how email should be routed with the Simple Mail Transfer Protocol [more].

Usage

MXRecord::primary_server('google.com')
  #=> aspmx.l.google.com
MXRecord::primary_server('rangers.co.uk')
  #=> mail.rangers.co.uk

Contributing to mx_record

Copyright

Copyright © 2012 Lee Reilly. See LICENSE.txt for further details.