Can I map a hostname *and* a port with /etc/hosts? [closed]

Can I map an IP address like 127.0.0.1 to a domain name and a port?

For example, I would like to map 127.0.0.1 to api.example.com:8000

2 Answers
2

Leave a Comment