I'm trying to set up domain forwarding on my local machine so that all requests to foo.com are automatically redirected to bar.com.
I've read about setting up a DNS server locally, but I'm wondering if there's a simpler way to accomplish this. Is there a specific configuration file I can edit to achieve domain forwarding without having to set up a DNS server?