We have an apache server that runs our work Intranet (intranet.domain.com), as well as a test site with restricted access (dummy.domain.com). Both are in DNS and both work when I go to the full address, but I also have a CNAME in DNS (drewnett - points to intranet.domain.com.) and this is connecting to our test site as opposed to our main site.
Through experimenting I found out that
drewnett will take you to the location defined in the first config that it finds (so first alphapetically in this case).
I'm lost for what to check, as Apache Configs must be correct for the full address to connect correctly, and my CNAME has a '.' at the end of it.
Any pointers here would be welcome.