Question

DNS Adding "A" record acting weird?

If I try to add an “A” record to my domain pointing to an ip address such as this:

mail.mydomain.com points to 101.101.101.101

I get this as a record?

mail.mydomain.com.mydomain.com points to 101.101.101.101

Why is this?

Thanks!


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.

@jeffrey6f729b2968bb9ab9eaf

For A entries, in most cases, with most providers, you only need to specify mail and not the FQDN, or fully qualified domain name.

So instead of:

A          mail.yourdomain.com          IP_ADDRESS

… you’d want to use:

A          mail          IP_ADDRESS

This is the case with DigitalOcean’s DNS, as well as most domain registrars. Your domain is appended by default, so there’s no need to add it with the entry.