I'm about to set up a new Ubuntu 10.04 server which will act as a web server. The server will host a couple of domains, including a few subdomains. Does the '/etc/hosts' need to contain all domains and subdomains, or is it enough just to let it contain the standard localhost line and the public IP address line like below?
127.0.0.1 localhost web00.example.com 188.8.131.52 web00.example.com web00
I presume that the consequence of not having '/etc/hosts' to list the domains which the web server hosts is that DNS lookups can't be done internally but have to be handed over to the external DNS server?