From owner-freebsd-questions@FreeBSD.ORG Fri Oct 23 16:18:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C506E1065676 for ; Fri, 23 Oct 2009 16:18:53 +0000 (UTC) (envelope-from millenia2000@hotmail.com) Received: from bay0-omc1-s29.bay0.hotmail.com (bay0-omc1-s29.bay0.hotmail.com [65.54.246.101]) by mx1.freebsd.org (Postfix) with ESMTP id A80A88FC19 for ; Fri, 23 Oct 2009 16:18:53 +0000 (UTC) Received: from BAY126-W12 ([65.55.131.47]) by bay0-omc1-s29.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 23 Oct 2009 09:18:53 -0700 Message-ID: X-Originating-IP: [65.214.169.254] From: Sean Cavanaugh To: "freebsd-questions@freebsd.org" Date: Fri, 23 Oct 2009 12:18:53 -0400 Importance: Normal In-Reply-To: <200910231717.AA243925902@mail.Go2France.com> References: <200910231717.AA243925902@mail.Go2France.com> MIME-Version: 1.0 X-OriginalArrivalTime: 23 Oct 2009 16:18:53.0199 (UTC) FILETIME=[833A71F0:01CA53FC] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FW: DNS Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2009 16:18:53 -0000 > Date: Fri=2C 23 Oct 2009 17:17:48 +0200 > From: lconrad@Go2France.com > To: freebsd-questions@freebsd.org > Subject: Re: DNS Question >=20 > > > >All true=2C and I did not do a very good job of explaining it. My issue= =20 > >was that we have requests to use a CNAME for the domain record. Such as= =20 > >this. > > > >example.com CNAME otherdomain.com > >www.example.com CNAME otherdomain.com > > > >I was taught this was not good form >=20 > worse=2C it's illegal. how is this illegal? if you are residing your domain on a hosting service= =2C this makes sense to me. Granted its bad form and should have an A recor= d to the host for the main domain record=2C but if i had control over "othe= rdomain.com" and not "example.com" and had to change the IP address=2C "exa= mple.com" would be dead until i was able to reach the owner of that domain = and have them change their DNS info.=20 =20 =20 > =2C but allowed. I can deal with it.=20 > >But what of having a SOA record for example.com=2C no A or CNAME record= =20 > >for the TLD example.com=2C only hosts such as www=2C ns1=2C ftp=2C etc. > > > >I tried it an it seems to work fine=2C but doesn't look proper to me. Th= en=20 > >again I remember when CNAME were considered evil. >=20 > CNAMEs are still evil=2C unless=20 > 1) no other solution exists and=20 > 2) the user knows how to use CNAMEs (rare). >=20 > Len >=20 there is nothing that says you HAVE to have your tld labled in DNS. you wou= ld just run into issues if someone types http://example.com into their web = browser and not get a result in DNS. =20 =20 to clarify on CNAME's a bit better. CNAME's are nothing more than DNS alias= es. the reason you do not want to overuse them is that you could potentiall= y create a loop if you are not careful =20 www.site1.com CNAME www.host1.com. www.host1.com CNAME www.site1.com. =20 syntactically=2C this is correct but would cause an infinite loop until a t= imeout occurred on your computer. =20 also you want to limit how many weird names you get associated to one box. = it makes sense if you want www.example.com to point to your web server=2C w= hich you may have officially called "srvWeb"=2C but looking at things like = a mail server=2C would you rather only have the entry: =20 mail.example.com CNAME srvMail.example.com. =20 or have to edit this: =20 pop3.example.com CNAME srvMail.example.com. smtp.example.com CNAME srvMail.example.com. imap.example.com CNAME srvMail.example.com. =20 The other interesting side would be reverse DNS lookups. Only one record wo= uld be returned=2C and most likely would be the original A record. A nice e= xample of this is doing a basic "ping -a www.yahoo.com" which you get back = that it is resolving "www-real.wa1.b.yahoo.com". =