I have not found any reference to this in the RFCs and hope to find a reliable answer here.
Domain mail.example.com
runs a mail server. I want to set the MX record for the domain awesomeexample.com
pointing to mail.example.com
. Can I use the FQDN or do I have to use the static IP address?
AFAIK The
MX
record data format is formalised inRFC 1035
which defines that MX records should point to host names (FQDN's) rather than IP-addresses.(of course IPv6 wasn't conceived then yet, but an IPv6 host will (also) do a lookup for an AAAA record instead.)