You need to be aware of the hard limits on the line size and number of aliases when you edit the /etc/hosts file.
The line size limit includes the end of line character. You can enter up to 1021 characters per line.