Hi, Has any one had problems with mail clients were your DNS is like this; doman.com MX 50 mail.domain.com domain.com MX 100 mail2.domain.com domain.com CNAME www.domain.com -aurf
On 02/25/2013 08:06 AM, aurfalien wrote:> Hi, > > Has any one had problems with mail clients were your DNS is like this; > > doman.com MX 50 mail.domain.com > domain.com MX 100 mail2.domain.com > > domain.com CNAME www.domain.com > >The short answer is you can't do that and expect it to work because you can't mix CNAME and other types of records for a hostname. It is simply an invalid configuration at a DNS level. Read http://en.wikipedia.org/wiki/CNAME_record#Restrictions -- Benjamin Franz
On Feb 25, 2013, at 8:11 AM, Reindl Harald wrote:> > > Am 25.02.2013 17:06, schrieb aurfalien: >> Hi, >> >> Has any one had problems with mail clients were your DNS is like this; >> >> doman.com MX 50 mail.domain.com >> domain.com MX 100 mail2.domain.com >> >> domain.com CNAME www.domain.com > > you CAN NOT do that > > domain.com must be a A-record > is so, nothing can change this and named will refuse to start if you do soSorry, should have clarified that an A record does exist for www.domain.com. - aurf
On Feb 25, 2013, at 9:39 AM, Reindl Harald wrote:> > > Am 25.02.2013 17:56, schrieb aurfalien: >> >> On Feb 25, 2013, at 8:11 AM, Reindl Harald wrote: >> >>> >>> >>> Am 25.02.2013 17:06, schrieb aurfalien: >>>> Hi, >>>> >>>> Has any one had problems with mail clients were your DNS is like this; >>>> >>>> doman.com MX 50 mail.domain.com >>>> domain.com MX 100 mail2.domain.com >>>> >>>> domain.com CNAME www.domain.com >>> >>> you CAN NOT do that >>> >>> domain.com must be a A-record >>> is so, nothing can change this and named will refuse to start if you do so >> >> Sorry, should have clarified that an A record does exist for www.domain.com > > and why do you not make the A-record for "domain.com" and the > CNAME for "www.domain.com" to "domain.com" as virtually everybody > does who has mail and web services on a domain? >So A records and MX record mixes can coexist? For example; domain.com A 1.2.3.4 www.domain.com CNAME domain.com And leave MX as is. This should work? - aurf
On Mon, Feb 25, 2013 at 6:06 PM, aurfalien <aurfalien at gmail.com> wrote:> Hi, > > Has any one had problems with mail clients were your DNS is like this; > > doman.com MX 50 mail.domain.com > domain.com MX 100 mail2.domain.com > > domain.com CNAME www.domain.com >Hello, You can't mix CNAMEs with other record types. The whole domain name can't be defined as a CNAME even if you don't add any A/MX records to it because it *must* have NS records. With BIND you can't even load a zone file defined like you suggested. named-checkzone complains: dns_master_load: domain.com.zone:14: domain.com: CNAME and other data zone domain.com/IN: loading from master file domain.com.zone failed: CNAME and other data zone domain.com/IN: not loaded due to errors. Interesting read: http://tools.ietf.org/rfc/rfc1912.txt pages 5/6 for CNAMEs. Usually you should use something like: domain.com IN NS dns.server.com. domain.com IN NS other.dns.com. domain.com IN A x.x.x.x www.domain.com IN CNAME domain.com. domain.com IN MX 5 etc AFAIK, SSL certs for www.domain are also valid for domain by default so that shouldn't be a problem.