CNAME or A record?

Lightner, Jeff JLightner at water.com
Thu Sep 29 14:08:49 UTC 2011


What you responded to below was simply my agreement that one doesn't use DNS for web "redirects".   I didn't suggest he doesn't still need two records to get their in the first place.

I should think it was clear from my original post in the thread that I was saying he should have two records and that my preference was A records.

-----Original Message-----
From: bind-users-bounces+jlightner=water.com at lists.isc.org [mailto:bind-users-bounces+jlightner=water.com at lists.isc.org] On Behalf Of WBrown at e1b.org
Sent: Wednesday, September 28, 2011 7:17 PM
To: Lightner, Jeff
Cc: bind-users at isc.org
Subject: RE: CNAME or A record?

All true, but if you don't have some sort of DNS record for both 
example.com and www.example.com, then all the rewrite rules in the world 
won't help.

For all we know, the web server doesn't care what the URL is since it is 
the only site hosted on that server and answers to all GETs.

Jeff wrote on 09/28/2011 10:51:08 AM:

> +1
> 
> All of our redirects are either done by rewrite rules in Apache or 
> Jboss or on our load balancer.   We don’t do any in DNS.
> 
> 
> 
> 
> From: bind-users-bounces+jlightner=water.com at lists.isc.org [
> mailto:bind-users-bounces+jlightner=water.com at lists.isc.org] On Behalf 
Of ??
> Sent: Wednesday, September 28, 2011 10:43 AM
> To: feralert
> Cc: bind-users at isc.org
> Subject: Re: CNAME or A record?
> 
> this is the stuff what should be done by webserver rather than by 
> DNS. i,e, Apache rewrite will do that.
> 在 2011-9-28 下午10:29,"feralert" <feralert at gmail.com>写道:
> > Hi all,
> > 
> > I'm sure this has been asked trillions of times but since I couldn't
> > find any concrete answer/reference in google I am asking you guys in
> > this list. Sorry if anyone thinks this a dumb question or something
> > very obvious.
> > 
> > The thing is that i want users redirected to 'www.domain.com' even
> > when they just type the domain name 'domain.com'.
> > In order to do so I am not sure if its best to have one A RR for each
> > or have an A RR for the domain and a CNAME RR pointing to 'domain.com'
> > for 'www.domain.com'.
> > 
> > 
> > domain.com A 1.1.1.1
> > www.domain.com A 1.1.1.1
> > 
> > OR
> > 
> > domain.com A 1.1.1.1
> > www.domain.com CNAME domain.com
> > 
> > 
> > Any help appreciated.
> > 
> > 
> > Thanks,
> > Fred
> > _______________________________________________
> > Please visit https://lists.isc.org/mailman/listinfo/bind-users to 
> unsubscribe from this list
> > 
> > bind-users mailing list
> > bind-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/bind-users
> 
> 
> AthenaR, Created for the Cause? 
> Making a Difference in the Fight Against Breast Cancer
> 
> ---------------------------------
> CONFIDENTIALITY NOTICE: This e-mail may contain privileged or 
> confidential information and is for the sole use of the intended 
> recipient(s). If you are not the intended recipient, any disclosure,
> copying, distribution, or use of the contents of this information is
> prohibited and may be unlawful. If you have received this electronic
> transmission in error, please reply immediately to the sender that 
> you have received the message in error, and delete it. Thank you.
> ----------------------------------
> 
> 
> Stream: WBROWN

> 
> Spam
> Not spam
> Forget previous vote_______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to 
> unsubscribe from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users



Confidentiality Notice: 
This electronic message and any attachments may contain confidential or 
privileged information, and is intended only for the individual or entity 
identified above as the addressee. If you are not the addressee (or the 
employee or agent responsible to deliver it to the addressee), or if this 
message has been addressed to you in error, you are hereby notified that 
you may not copy, forward, disclose or use any part of this message or any 
attachments. Please notify the sender immediately by return e-mail or 
telephone and delete this message from your system.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
bind-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users



More information about the bind-users mailing list