I'm a full stack web developer who has been freelancing for the last 20 years. I write about everything from development to production and also have video courses on my site!
That's the whole point to locally test whether the website is working as expected, before changing the global DNS variables.
/etc/hosts is only used to resolve host names locally on your machine before it contacts your DNS server so editing your /etc/hosts file doesn't really help test anything in the context of seeing if your public DNS records are updated.
That's why you can add something like 127.0.1.1 google.com to your /etc/hosts and now google.com resolves to a loopback address instead of the real google.com page (for your machine only). It's because your configured DNS servers haven't even been contacted yet to resolve that hostname.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
/etc/hosts is only used to resolve host names locally on your machine before it contacts your DNS server so editing your /etc/hosts file doesn't really help test anything in the context of seeing if your public DNS records are updated.
That's why you can add something like
127.0.1.1 google.com
to your /etc/hosts and now google.com resolves to a loopback address instead of the real google.com page (for your machine only). It's because your configured DNS servers haven't even been contacted yet to resolve that hostname.