Configuring dnsmasq to handle mx records on pfsense 2.0.1

dnsmasqemailmx-recordpfsense

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.

Best Answer

Generally no need for that, as being a full blown DNS server is usually done elsewhere and host overrides suffice. You can use the --mx-host syntax for dnsmasq in the advanced options box if you really need that. Described in the dnsmasq man page. http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html

Related Topic