Avatar billede erikjacobsen Ekspert
16. november 2002 - 11:17 Der er 1 kommentar og
1 løsning

CNAME og MX samtidigt

Jeg leder efter dokumentation (et link!) der tydeligt
forklarer hvordan en DNS opsætning som

aaa.mitdomane.dk.      19278  IN      CNAME  bbb.mitdomane.aabc.dk.
aaa.mitdomane.dk.      19278  IN      MX      10 ccc.mitdomane.dk.

skal forstås mht emails. Skal emails sdresseret til
aaa.mitdomane.dk sendes til
bbb.mitdomane.dk, eller til ccc.mitdomane.dk eller kan
begge bruges valgfrit, eller er det en "ulovlig"
kombination.

Erfaringen ude i verden er at det nogle steder sendes
til bbb og andre steder til ccc.

Du bedes venligst afholde dig fra at komme med indlæg,
hvis disse alene er baseret på gætværk.
Avatar billede czar Nybegynder
16. november 2002 - 11:32 #1
ovenstående er ulovlig configuration af zonefil i henhold til RFC 1912

http://rfc-1912.rfclist.com/rfc-1912-6.htm

2.4 CNAME records

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!

  If you want to have your domain also be a host, do the following:

          podunk.xx.      IN      NS      ns1
                          IN      NS      ns2
                          IN      A      1.2.3.4
          mary            IN      A      1.2.3.4

  Don't go overboard with CNAMEs.  Use them when renaming hosts, but
  plan to get rid of them (and inform your users).  However CNAMEs are
  useful (and encouraged) for generalized names for servers -- `ftp'
  for your ftp server, `www' for your Web server, `gopher' for your
  Gopher server, `news' for your Usenet news server, etc.

  Don't forget to delete the CNAMEs associated with a host if you
  delete the host it is an alias for.  Such "stale CNAMEs" are a waste
  of resources.

  Don't use CNAMEs in combination with RRs which point to other names
  like MX, CNAME, PTR and NS.  (PTR is an exception if you want to
  implement classless in-addr delegation.)  For example, this is
  strongly discouraged:

          podunk.xx.      IN      MX      mailhost
          mailhost        IN      CNAME  mary
          mary            IN      A      1.2.3.4

  [RFC 1034] in section 3.6.2 says this should not be done, and [RFC
  974] explicitly states that MX records shall not point to an alias
  defined by a CNAME.  This results in unnecessary indirection in
  accessing the data, and DNS resolvers and servers need to work more
  to get the answer.  If you really want to do this, you can accomplish
  the same thing by using a preprocessor such as m4 on your host files.

  Also, having chained records such as CNAMEs pointing to CNAMEs may
  make administration issues easier, but is known to tickle bugs in
  some resolvers that fail to check loops correctly.  As a result some
  hosts may not be able to resolve such names.

  Having NS records pointing to a CNAME is bad and may conflict badly
  with current BIND servers.  In fact, current BIND implementations
  will ignore such records, possibly leading to a lame delegation.
  There is a certain amount of security checking done in BIND to
  prevent spoofing DNS NS records.  Also, older BIND servers reportedly
  will get caught in an infinite query loop trying to figure out the
  address for the aliased nameserver, causing a continuous stream of
  DNS requests to be sent.


Så svaret er at det aldrig sker.. Kombinationen er ulovlig. :D
Avatar billede erikjacobsen Ekspert
16. november 2002 - 11:43 #2
Det lyder som om du har fundet det helt rigtige.
Mange tak.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester