A
A
Arthur2013-11-30 15:44:49
Domain Name System
Arthur, 2013-11-30 15:44:49

Is it possible to record CNAME and MX?

Entered entries in zone settings

* CNAME dynamic-dns.ru
www CNAME dynamic-dns.ru
@ MX yandex.ru 10

as a result, the site on www.sitename.ru works
and sitename.ru does not work
tried
* CNAME www.sitename.ru
www CNAME dynamic-dns.ru
@ MX yandex.ru 10

registrar support also does not work
, it says that CNAME and MX cannot work at the same time.
Is it so?
What configuration options are possible for correct operation?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex, 2013-12-02
@astralo

yes, CNAME doesn't work with MX. that's why he and CNAME. you can drive a crutch. write an SRV record for _http._tcp. maybe it will work.
crutch number 2 - drive a "stub site" into a static ip
that will redirect to www.sitename.ru upon request sitename.ru

X
xaker1, 2013-11-30
@xaker1

RFC1912 p.p. 2.4

A CNAME record is not allowed to coexist with any other data.  In
   other words, if suzy.podunk.xx is an alias for sue.podunk.xx, you
   can't also have an MX record for suzy.podunk.edu, or an A record, or
   even a TXT record.  Especially do not try to combine CNAMEs and NS
   records like this!:
           podunk.xx.      IN      NS      ns1
                           IN      NS      ns2
                           IN      CNAME   mary
           mary            IN      A       1.2.3.4
  This is often attempted by inexperienced administrators as an obvious
   way to allow your domain name to also be a host.  However, DNS
   servers like BIND will see the CNAME and refuse to add any other
   resources for that name.  Since no other records are allowed to
   coexist with a CNAME, the NS entries are ignored.  Therefore all the
   hosts in the podunk.xx domain are ignored as well!

Those. you cannot combine CNAME and other records. Therefore, you only need to use the A\AAAA notation.
@bahek2462774 is a bit wrong - CNAME can be used for a second level domain, but then NS records cannot be used for that domain. Those. this CNAME record must be registered on the root server of this zone, and this is possible if you have a first-level domain.

B
bahek2462774, 2013-11-30
@bahek2462774

cname cannot be used for a second-level domain

A
Artur, 2013-11-30
@astralo

What options for organizing records are possible in this case, given that:
1. no IP, only dynamic DNS, respectively, only CNAME
2. mail from Yandex

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question