Code:
/home/milo [201]> ping Apophis
and make sure that you /etc/nsswitch.conf file has:
The /etc/hosts file has this syntax:
IP_address canonical_hostname aliases
example(from 'man hosts'):
127.0.0.1 localhost
192.168.1.10 foo.mydomain.org foo
192.168.1.13 bar.mydomain.org bar