CNAME point to a hostname under virtualmin

Hi all,
I’ve a server running a site ABC.com and i configured the CNAME test.ABC.com (Server A) points to test.com (Server B)

ABC.com and test.com running on different location.

test.com is under administrated by virtualmin. Means this box has more than 1 site beside test.com all using internal IPs.

When i launch a browser test.ABC.com it goes to default hostname in server B.

I can’t blame on CNAME record, as i know it only translate into IP. Using that IP accessing the intended IP.

How do i solve it, when user launch test.ABC.com it will points directly to test.com ? Any advise?

http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,troubleshooting_common_problems/#the_wrong_site_shows_up