I've frequently used /etc/hosts to hop back and forth between servers for a domain and also to test if it's serving correctly before a deployment.
However, in this latest case I've used cloudflare for DNS. For some reason I cannot serve (get a HTTP response) the site from the old IP address (of the server because it's stuck on the updated IP address). I cannot switch this back since the new site is already live. I've never had an issue like this before. The only difference seems to be that Cloudflare manages the DNS entries.
I've troubleshoot by flushing DNS caches, restarting, and other various tips found online but no success. I was also able to serve another site (different domain) by modifying the hosts file... Which leads me to the question at hand...
So, the question is, can cloudflare cause /etc/hosts entries to be ignored? Or is this a coincidence?
If this is the issue, how is this even possible? I thought the hosts file bypassed DNS lookup.
Cheers,