Configuring dnsmasq to handle mx records on pfsense 2.0.1

Posted by Bob B. on Server Fault See other posts from Server Fault or by Bob B.
Published on 2012-10-05T23:20:58Z Indexed on 2012/10/07 9:40 UTC
Read the original article Hit count: 304

Filed under:
|
|
|

I know from dnsmasq's man page that it is capable of handling mx records, but I can't seem to find anything in pfsense's web GUI or anywhere online that talks about how to include mx records.

I'm running pfsense 2.0.1 on a turnkey hardware appliance. I have root shell access.

I would prefer not to move away from using DNS Forwarder/dnsmasq if I can help it.

I've searched for a dnsmasq.conf file, but none exists. pfsense handles everything through a centralized xml config file. That file merely designates the dnsmasq section using the tag, then drops immediate into listings for each host override you define.

My understanding of pfsense's implementation: In the GUI, you can only define an override using the host, domain, IP and description. In the XML that translates to:

<hosts>   
  <host>foo</host>
  <domain>foo.com</domain>
  <ip>127.0.0.1</ip>
  <descr/>
</hosts> 

The above example results in foo.foo.com resolving to 127.0.0.1, for instance.

But that's it. No ability to select a record type with which to define things like MX.

Anyone had any luck with this?

Thank you for any insights you might have.

© Server Fault or respective owner

Related posts about email

Related posts about mx-record