-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 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.

Not the answer you're looking for? Browse other questions tagged .