I can send mail but not receive : Host not found

I just installed a new fresh droplet with an Ubuntu 14 server. Then I installed Virtualmin.

And I can send mail but not receive them, the error message is :

<>: Host or domain name not found. Name service error for type=A: Host not found

Yet I have configurer the DNS :

A       @             45.55.105.XXX 
A     45.55.105.XXX
MX       10   
TXT            v=spf1 a mx ip4:45.55.105.XXX -all

The DNS are the digitalocean DNS

The zone file is :

$TTL 1800 IN SOA 1459515870 10800 3600 604800 1800 1800 IN NS 1800 IN NS 1800 IN NS 1800 IN A 45.55.105.XXX 1800 IN MX 10 1800 IN TXT v=spf1 a mx ip4:45.55.105.XXX -all 1800 IN A 45.55.105.XXX

I didn’t modify my /etc/resolv.conf :

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

Neither my /etc/hosts

# Your system has configured 'manage_etc_hosts' as True.
# As a result, if you wish for changes to this file to persist
# then you will need to either
# a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl
# b.) change or remove the value of 'manage_etc_hosts' in
#     /etc/cloud/cloud.cfg or cloud-config from user-data ubuntu-512mb-nyc1-01 ubuntu-512mb-nyc1-01 localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

And from another server, host -t mx gives : mail is handled by 10

So I don’t know what to check.

Thanks for the help

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @SphericalCow:

i don’t know if this is intentional or not, but it looks like you had repeated “” when you were specifying the line below. 1800 IN A 45.55.105.XXX

if you haven’t, i would recommend using the dig command to verify that your DNS is setup properly


View the original comment