You can't. A CName is an alias. When you do a DNS look up on a CName, you get back the hostname, not an ip address. You'll need to do 2 lookups to get the ip address. CName -> MachineName -> ip address. A single A record "MachineName" can have MULTIPLE CNames that point to it.
--please don't forget to close up the thread here by marking answer if the reply is helpful--