In many cases if you modify the hosts file (Which I don’t think anything above Win7 cares about. It’s all DNS there) something will pick up the change and change it back.
As a matter of fact, I added a large batch of URLs to my hosts file a couple of days ago on my Win10, a couple of days ago, and am going to do the same on Linux later.