tweets23 0 Newbie Poster

How can this below line be implemented via htaccess ?

ServerAlias www.d1.com d2.com

Tried to implement it using CNAME , but not working.

Thanks