This is a short description of what the correct contents of /etc/hosts and /etc/hostname on a GNU/Linux (or another UNIX-like) system is. Here's what to take away from this discussion on LinuxQuestions.