CNAME point to a hostname under virtualmin

Hi all,
I’ve a server running a site and i configured the CNAME (Server A) points to (Server B) and running on different location. is under administrated by virtualmin. Means this box has more than 1 site beside all using internal IPs.

When i launch a browser 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 it will points directly to ? Any advise?,com_openwiki/Itemid,48/id,troubleshooting_common_problems/#the_wrong_site_shows_up