CN defaults to main host cert instead of name-virtualhost cert

I think its somehow resolving the host.domain to IP and then getting the cert of that IP which is the main host. The -servername is supposed to fix that from what I read, but it doesn’t seem to be working.