How can I re-map one hostname to another, similar to how one would re-map a hostname to an IP in
For instance, how could I map
a.com on my local machine?
Adding an entry into
/etc/hosts won't work as it maps hostnames to IP addresses, whereas I need to map one hostname to another. I'm also unable to use the target domain's IP because it's subject to change.