title: On Linux, how do I fake an MX record for a domain?
body: <p>I'm testing two mail servers that live on two (virtual) machines with made up domain names for emails. When one of the servers needs to send an email to the other one, it seemingly performs a DNS lookup for the recipient domain's MX record, which doesn't point the sender server to the correct IP, no matter what IP/domain mapping I put in <code>/etc/hosts</code>.</p>
  
  <p>So should I install a DNS server and create a custom MX record for the recipient domain? How do I do this on Ubuntu or is there an easier way?</p>