title: Pulling MX record from DNS server
body: <p>I am writing an application that is requiring me to do a DNS lookup for an MX record.  I'm not sure if anyone has had experience doing this kind of work but if you do, any help would be appreciated.</p>
  
  <p>EDIT:
  The thing that I'm going for is an application that will send an e-mail alert.  The problem is I need to have the application be able to lookup the MX record for a domain.</p>