Setting up some service on my server. DNS/DHCP/Gateway ok for my own local network. Planning to host a web mail server (working on local for users for now)

I added in my dns A and MX record (rDNS also) my mail server

smtp.pro.lan.   IN  A
smtp.pro.lan.   IN  MX  10

But when I try

host -t MX pro.lan
pro.lan has no MX record

I can't find where the problem come from.


You need to use the domain apex for the MX. Think of an MX record logically as "mail for pro.lan should go to this server".

So, for example:

smtp.pro.lan. IN A
pro.lan.      IN MX smtp.pro.lan.
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.