Can't make CNAME of base domain
I'm am trying to catch both
I was under the impression that it was possible to alias the base domain in this way - in fact I'm pretty sure that I've actually done it before through Zoneedit.
So, who's wrong - me or the software?
4 Replies
The issue here is that I have a large number of domains that might need to change IP at a moments notice - all from one single IP to another IP.
This is why I have a single A record, andreas.bar.baz. I then make all the
Very few of my domains really need A records as the www's CNAME to one host on another domain with MX records pointing to other hosts on that other domain.
Could it be that the way that way DNS is done is based on practices that have been since superseded?
In this day and age, I don't see two hits on my DNS per lookup being a big deal. Hey, I make up to three DNS hits on every mail coming into my system (DNSBL, SPF). So, I'm aware of the old thing of making both the bare domain and
@smiffy:
This is why I have a single A record, andreas.bar.baz. I then make all the
www.foo.bar ,www.bing.bong ,www.niddle.naddle , etc., records point to andreas.bar.baz.
This is fine; you can do that. It works.
But what you can not do is have "bar.com" or "bong.com" or "naddle.com" be CNAMES for andreas.bar.baz - that won't work.
The domain needs to have an SOA record. You can't have a CNAME and other records at the same time.
If I was doing this on my own DNS server then I'd make all the zone files be the same file. eg
zone "bar.baz" {
type master;
file "mystuff";
};
zone "bleh.meh" {
type master;
file "mystuff";
};
And "mystuff" can contain an A record for the zone (@ IN A 1.2.3.4) and www IN A 1.2.3.4 so changing the DNS is simply changing one file and reloading the zones.
As I'm using the Linode DNS (and ZoneEdit elsewhere) rather than running my own, the file option isn't really open to me. Handy to know, though. One day when I'm feeling brave, I might consider setting up DNS on my two Linodes.
For now, I will just set up A records pointing to the IP of my primary Linode for the bare domains. My Web servers are set up to redirect the bare domains to the appropriate www. or whatever, so it would be no great problem if the bare domains pointed to non-operating IPs, as nobody should be using them anyway!
Thanks again for the clarification.