CNAMEs for url pointing

Kevin Darcy kcd at daimlerchrysler.com
Wed Nov 8 20:35:51 UTC 2006


Ronni Jensen wrote:
> Hi,
>
> I have a domain, let's call it "example.com" and a bunch of other
> domains looking like it to overcome spelling issues from users, like;
>
> exemple.com
> examble.com
> exemble.com
> Etc...
>
> These other domains zones are not to have MX or A RR's, but should only
> redirect to the main website. What is the best way to do this? Can I
> just make a wildcard CNAME for it?
>
> <snip>
> --------------------------------------
> @	NS	ns1.example.com.
> @	NS	ns2.example.com.	
> 	CNAME	www.example.com.
> --------------------------------------
> <snap>
>
> Or is there a better way?
>   
Well, you can't really *wildcard* here, since DNS wildcards don't extend 
across zone boundaries.

However, as long as the entries in each zone are identical, you could 
use the "common file" trick where multiple zone definitions refer to the 
same file, e.g.

zone "exemple.com" {
type master;
file "example_com_misspellings";
};

zone "examble.com" {
type master;
file "example_com_misspellings";
};

and so forth.

- Kevin




More information about the bind-users mailing list