cname usage to get 2nd domain email through virtual host?

Barry Margolin barmar at
Mon Feb 11 21:50:11 UTC 2002

In article <a41qdh$doj at>, John <john at> wrote:
>would appreciate help on following problem -
>I have a main domain "", registered
>second domain "" Have tried
>setting up dns records via registrar for
> to point to
> Tried using A & MX records.
>Web site works great, email bounces because
>sendmail is not configured on server to accept
>email addressed to xxx at Fair
>Tech support at company says:
>> Can you create a cname under the master
>> domain for if not let us know,
>> will have to see if we can get a administrator
>> to make manually entries in the sendmail
>> config files for you. We dont typically do
>> this for a domain thats not hosted on the
>> server but I will see what can be done.
>I'm trying to decipher this. Doesn't help that
>I'm new at dns. It sounds like I need to create
>a new record in the dns entries for,
>something like:

You could do that, but it would only work for mail addressed to
user at, not user at

I think the reason they're suggesting a CNAME is that the sending machine
is supposed to replace any aliased hostnames in addresses with the primary
name; that way, by the time it arrives at their server, it will say
user at  But since you can't use a CNAME for the domain name itself,
this won't work for you if you want mail for user at to work.  For
that, they'll need to add to their sendmail config file.

Barry Margolin, barmar at
Genuity, Woburn, MA
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

More information about the bind-users mailing list