I'm testing a new server and have been playing with /etc/hosts.
I have been able to get it working on just domain.com, but if I try www.domain.com it points to where the actual domain is currently delegated, not the testing server.
If I load domain.com, I get the ip address I enter. With this though I enter www.domain.com I get where the domain is currently hosted.
if I try:
I still end up with where the domain is currently hosted and not the test server.
What am I missing here?