When I try to add aliases to /etc/hosts it causes connection problems with my internet. Whereby it is connected to my network and it still says it has internet access, but i am unable to view web pages (returns connection error page) or download etc, it does this every 10-15 minutes for 5 minutes. When I take the aliases out of the hosts file and restart apache, it is fine. I am running Ubuntu 12.10.
Here is my Hosts file.
127.0.0.1 localhost sitealias 127.0.1.1 ubuntu # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
I want to know whats causing it, but I would also like to know how you would go about diagnosing the cause for future references.