Add MX-record

Hi,

I try to add an MX record for a internal MX-Service. I create a file
host.conf in /etc/unbound/local.d/ with the same rights and owner as the
/etc/unbound.conf

This file contain a single line:
local-data: "intern. IN MX 10 mail.dom.intern."

The related A and PTR records are in the /etc/unbound/hosts.conf

If I check this with unbound-checkconf, I get the message that there is
a syntax error in the local host file.

How is the correct syntax to create a MX record?

Bernd

Hello Moritz,

(...)

As far as I understand your question, you are missing the server clause.
So your file needs at least two lines:

server:
     local-data: "intern. IN MX 10 mail.dom.intern."

Perfect,
with the correct syntax no error occured during the check and the
correct resolution appears when I check the MX via dig.

Thank you very much!

Bernd