hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Mail / DNS Experts [cname w/mx records]
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Mail / DNS Experts [cname w/mx records]

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-17-2004, 04:14 PM
datums datums is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 1,148

Mail / DNS Experts [cname w/mx records]


Hello


Does anyone know why you would not have mx records for a cname.

Example

cname.domain.com

cname.domain.com is an alias for domain.com
domain.com mail is handled by 10 mail4.mailserver.com
domain.com mail is handled by 20 mail9.mailserver.com


If so, can you reference an RFC ?


Thanks

__________________
Datums Internet Solutions, LLC
Systems Engineering & Managed Hosting Services
Complex Hosting Consultants

Reply With Quote


Sponsored Links
  #2  
Old 03-17-2004, 11:25 PM
wKkaY wKkaY is offline
Web Hosting Evangelist
 
Join Date: Apr 2003
Location: Melbourne, AU
Posts: 539
quote www.dnsreport.com:

If an MX record query returns a CNAME, extra processing is required, and some mail servers may not be able to handle it.

CNAMEs are prohibited in MX records, according to RFC974, RFC1034 3.6.2, RFC1912 2.4, and RFC2181 10.3.

Reply With Quote
  #3  
Old 03-18-2004, 12:25 AM
datums datums is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 1,148
Wkkay this I know.

My question is having mx records for a cname.

you have abc.domain.com <-- is a cname

abc.domain.com has mail.whatever.com as their mx

__________________
Datums Internet Solutions, LLC
Systems Engineering & Managed Hosting Services
Complex Hosting Consultants

Reply With Quote
Sponsored Links
  #4  
Old 03-18-2004, 10:26 AM
WB Tech WB Tech is offline
Newbie
 
Join Date: Mar 2004
Location: Chester, Va
Posts: 11
MX records just aren't compatible with CNAME records. Ü

__________________
Web Burner Windows 2000 Hosting
http://www.webburner.com
Toll Free Phone: (877) 535-2876

Reply With Quote
  #5  
Old 03-18-2004, 05:06 PM
dan_erat dan_erat is offline
Web Hosting Master
 
Join Date: Jun 2003
Posts: 673
datums: No, you can't do that.

RFC 1034 3.6.2:
Quote:
If a CNAME RR is present at a node, no other data should be present; this ensures that the data for a canonical name and its aliases cannot be different. This rule also insures that a cached CNAME can be used without checking with an authoritative server for other RR types.
RFC 1912 2.4:
Quote:
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.

Reply With Quote
  #6  
Old 03-18-2004, 05:09 PM
dan_erat dan_erat is offline
Web Hosting Master
 
Join Date: Jun 2003
Posts: 673
Well, you can do it, but you shouldn't. Don't use CNAMEs unless you have a really good reason to do so.

Reply With Quote
  #7  
Old 03-19-2004, 02:40 PM
datums datums is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 1,148
RFC 1912 2.4:

This is just saying I can't have similar entry, like
A record myalias.domain.com
Cname record myalias.domian.com

RFC 1034 3.6.2
Reading more on this one.

__________________
Datums Internet Solutions, LLC
Systems Engineering & Managed Hosting Services
Complex Hosting Consultants

Reply With Quote
  #8  
Old 03-19-2004, 03:38 PM
dan_erat dan_erat is offline
Web Hosting Master
 
Join Date: Jun 2003
Posts: 673
datums: Re 1912, no it's not. It says that the CNAME can't coexist "with any other data." They even mention MX records by name.

Reply With Quote
  #9  
Old 03-19-2004, 04:20 PM
datums datums is offline
Web Hosting Master
 
Join Date: May 2003
Posts: 1,148
dan_erat, You are 100% correct. I was reading it all wrong.
That RFC is exactly what I needed. My apologize.

Thank You

__________________
Datums Internet Solutions, LLC
Systems Engineering & Managed Hosting Services
Complex Hosting Consultants

Reply With Quote
  #10  
Old 04-26-2004, 09:19 AM
Brightadmin Brightadmin is offline
Web Hosting Master
 
Join Date: Feb 2004
Posts: 772
Hi,

MX to CNAME Causes Extra Lookups

The sendmail program is frequently more forgiving than other MTAs because it accepts an MX record that points to a CNAME record. The presumption is that, eventually, the CNAME will correctly point to an A record. But beware, this kind of indirection can cost additional DNS lookups. Consider this example of an exceptionally bad setup:


hostA IN MX 10 mailhub
mailhub IN CNAME nfsmast
nfsmast IN CNAME hostB
hostB IN A 123.45.67.89

First, sendmail looks up hostA and gets an MX record pointing to mailhub. Since there is only a single MX record, sendmail considers mailhub to be official. Next, mailhub is looked up to find an A record (IP address), but instead a CNAME (nfsmast) is returned. Now sendmail must look up the CNAME nfsmast to find its A record. But again a CNAME is returned instead of an A record. So sendmail must again look for an A record (this time with hostB). Finally, sendmail succeeds by finding the A record for hostB, but only after a few too many lookups.

The correct way to form the above DNS file entries is as follows:


hostA IN MX 10 hostB
mailhub IN CNAME hostB
nfsmast IN CNAME hostB
hostB IN A 123.45.67.89

In general, try to construct DNS records in such a way that the fewest lookups are required to resolve any A or MX records

More information About MX record then Look this
MX to CNAME Causes Extra Lookups
The sendmail program is frequently more forgiving than other MTAs because it accepts an MX record that points to a CNAME record. The presumption is that, eventually, the CNAME will correctly point to an A record. But beware, this kind of indirection can cost additional DNS lookups. Consider this example of an exceptionally bad setup:


hostA IN MX 10 mailhub
mailhub IN CNAME nfsmast
nfsmast IN CNAME hostB
hostB IN A 123.45.67.89

First, sendmail looks up hostA and gets an MX record pointing to mailhub. Since there is only a single MX record, sendmail considers mailhub to be official. Next, mailhub is looked up to find an A record (IP address), but instead a CNAME (nfsmast) is returned. Now sendmail must look up the CNAME nfsmast to find its A record. But again a CNAME is returned instead of an A record. So sendmail must again look for an A record (this time with hostB). Finally, sendmail succeeds by finding the A record for hostB, but only after a few too many lookups.

The correct way to form the above DNS file entries is as follows:


hostA IN MX 10 hostB
mailhub IN CNAME hostB
nfsmast IN CNAME hostB
hostB IN A 123.45.67.89

For more Information.

http://www.busan.edu/~nic/networking...il/ch21_03.htm

Bright
24/7 Technical Support

__________________
Bright Info Solutions

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Hosting Control Panel cPanel and WHM Version 11.32 Adds Features, Fixes Web Hosting News 2012-04-08 11:51:35
cPanel Launches Version 11.32 of Control Panel and Web Host Manager Web Hosting News 2012-02-15 12:46:33
SpamExperts IPv6 Whitelist Foundation Wins IPv6 Task Force Award Web Hosting News 2011-11-18 22:21:53
Indian Web Host BrainPulse to Expand Technical Support Staff Web Hosting News 2011-10-03 15:33:07
Web Host Dynadot Complies with Court Order to Provide Information on WikiLeaks Web Hosting News 2011-08-25 14:22:14


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?