-3

I have the following configuration in the DNS server (1-configuration):

-------------------------------------------------------------------- Host name | IP address/URL | Record Type | MX Pref | TTL -------------------------------------------------------------------- @ | awf.rhcloud.com. | CNAME(Alias) | n/a | 1800 www | http://example.com | URL Redirect | n/a | 1800 mail | domain.mail.yandex.net.| CNAME(Alias) | n/a | 1800 

and MX part is

-------------------------------------------------------------------- HOST NAME | MAILSERVER HOST NAME | MAIL TYPE | MX Pref | TTL -------------------------------------------------------------------- @ | mx.yandex.ru. | MX | 10 | 1800 

in the above case MX record actuality does not working if I change @ and www as below MX starts working (2-configuration):

-------------------------------------------------------------------- Host name | IP address/URL | Record Type | MX Pref | TTL -------------------------------------------------------------------- @ | http://www.example.com | URL Redirect | n/a | 1800 www | awf.rhcloud.com. | CNAME(Alias) | n/a | 1800 

How can I make such that MX starts to work for the first configuration(without www). Is it possible, is there any tricks to do this?

3
  • 1
    possible duplicate of Can you reference a CNAME record in an MX record? Commented May 22, 2015 at 8:54
  • 3
    Here it is not an issue of having an MX record referencing a CNAME, but instead having a CNAME in combination with other records types, such as in serverfault.com/questions/481243/… Commented May 22, 2015 at 9:10
  • @b0fh It's worse than that. Some of the record types are not even real types. Commented May 24, 2015 at 22:30

1 Answer 1

2

A CNAME record indicates that the name is an alias for another, for all record types. You are not allowed to have other record types for the same name when a CNAME is present.

Remove the CNAME for @ and replace it with explicit records (A, AAAA, SRV, etc) for all the types you need.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.