Date: Fri, 24 Aug 2001 16:03:40 +1000 From: Tony Landells <ahl@austclear.com.au> To: Joe Clarke <marcus@marcuscom.com> Cc: default <default013subscriptions@hotmail.com>, freebsd-questions@FreeBSD.ORG Subject: Re: DNS CNAME question Message-ID: <200108240603.QAA23369@tungsten.austclear.com.au> In-Reply-To: Message from Joe Clarke <marcus@marcuscom.com> of "Fri, 24 Aug 2001 01:35:50 -0400." <20010824013317.H14558-100000@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
marcus@marcuscom.com said: > One thing I notice is that all fully-qualified hostnames need to end > in a '.'. For example, here is a copy of one of my MX records: > clarkeadvertising.com. IN MX copernicus.clarkeadvertising.com. > Without that trailing '.', the entry is not valid. You can certainly > point hostnames between top-level domains, so the .com -> .ws should > not be the problem. Well, there are a couple of inaccuracies in this... What will happen if you don't put a trailing dot on something is that the zone name gets added. In the above example, assuming that this is the zone file for clarkeadvertising.com, you could have: clarkeadvertising.com. IN MX copernicus except, of course, that an MX record also needs a preference, so it should be something like: clarkeadvertising.com. IN MX 10 copernicus Now there are a couple of shortcuts that BIND also understands, so if you wanted a minimalist approach you could use: @ IN MX 10 copernicus as "@" is a shorthand for the current zone name. Or, if everything you've done so far refers to "clarkeadvertising.com", you could skip the first field completely IN MX 10 copernicus but that's a bit on the dangerous side... Now the point about the terminating '.' is well made, however (despite my quibbles about the details), to get back to the original question. On Fri, 24 Aug 2001, default wrote: > Hi, > > I have just setup my first 'mirror' domain... > > I created a zone file for "blah.com", and put this in it (referring to my > main zone) > > blah.com IN CNAME domain.ws > > Now, the intended effect is to have two domains point to the same I.P. > address... and it does work, however... > > I recieve this error message in my log files: > > blah.com has CNAME and other data (invalid) > blah.com:13:blah.com: CNAME and OTHER data error > blah.com has CNAME and other data (invalid) > blah.com:11:blah.com: CNAME and OTHER data error > blah.com has CNAME and other data (invalid) > blah.com:7:blah.com: CNAME and OTHER data error > master zone "blah.com" (IN) rejected due to errors (serial xxxx) > > Now, I'm not worried about the serial ... I'll change that later... but... > as far as the CNAME errors... is this normal in regards to a 'mirror' > domain? Or have I done something wrong? (Another possability I have thought > of is that because one is .com, and one is .ws, ... there may be something > going on there but...) I don't know exactly what you mean by a "mirror" domain... If what you want is to have all the same entries for blah.com and domain.ws, then if you construct the zone file properly you can just point both zones at the same file in named.conf: zone "domain.ws" { type master; file "domain.ws"; }; zone "blah.com" { type master; file "domain.ws"; # blah.com is a mirror of domain.ws }; In terms of your error messages; the problem with a CNAME is that you can only do a mapping of one name, and there can't be any other data associated with that mapping, so if your zone file with: blah.com. IN CNAME domain.ws. also has stuff like blah.com. IN NS server.blah.com. you'll get errors. In fact, you can't even use a CNAME to "load share": www.blah.com. IN CNAME www1.domain.ws. www.blah.com. IN CNAME www2.domain.ws. is also an error. Perhaps if you post the entire zone file for blah.com you could get some more precise feedback... Tony -- Tony Landells <ahl@austclear.com.au> Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108240603.QAA23369>