At least in windows, the hosts file can point from any domain to any IP. In theory you can do things like point advertising domains to 127.0.0.1 if you wanted to make sure web requests never made it off your local machine. I did this a lot back in the day to test websites running locally but pointed to a friendlier name than localhost:randomport
Alright, if they’re having a romp in the afterlife in some capacity, they aren’t ghosts. There’s a kind of underlying implication they’re sticking around for some worldly purpose or reason. Often this is used for metaphor about moving on in your life (or rather afterlife).