I want to add this entry:
127.0.0.1 api.localhost
To test the api of my web app.
However, the hosts file says:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
Is it safe to add the entry I want to add? Can things go wrong?
127.0.0.1
under certain circumstances. If I'm not mistaking it happens when you have an Ethernet card, but no network connectivity, e.g. DHCP is not working.