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!
I usually upon migrating do edit /etc/hosts (in Unix cases), adding the new IP address and domain.tld to check whether everything's working as expected — before switching the nameservers or DNS entries.
You don't need to edit your /etc/hosts file for that and you can't trust it anyways because it's isolated to just your machine before your DNS servers are even used.
But you can run dig domain.tld or dig @8.8.8.8 domain.tld if you want to test it with another DNS server besides your own (such as Google's).
That ~48 hour wait period is just a safe number to make sure DNS servers around the world update their records.
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.
You don't need to edit your /etc/hosts file for that and you can't trust it anyways because it's isolated to just your machine before your DNS servers are even used.
But you can run
dig domain.tld
ordig @8.8.8.8 domain.tld
if you want to test it with another DNS server besides your own (such as Google's).That ~48 hour wait period is just a safe number to make sure DNS servers around the world update their records.