2
0
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.
Please expand on "Problems". What exactly doesn't work? – daxlerod – 2013-04-11T17:49:06.133
Try to have your
/etc/hosts
file consistent with your/etc/hostname
file. Otherwise you can experience network problems. – jap1968 – 2013-04-11T18:04:48.050@Danzabar: Please link your Stack Overflow account in to Super User, and then edit your question, so we know that the edit is coming from you and not a random anonymous user. – Scott – 2013-04-12T18:47:04.220
@daxlerod: i have edited the question to expand on the problem; – Danzabar – 2013-04-13T08:16:20.157
Just to make sure, you are having trouble accessing OUTSIDE web pages, correct? You shouldn't need to restart apache, as it should have nothing to do with this problem if I understand you correctly. Please confirm – David Houde – 2013-04-13T10:35:20.950
@DavidHoude: that is correct, i can view websites i have on my apache. but taking the aliases out of /etc/hosts and then restarting apache stops the problem. its only when i have aliases that this is occuring. – Danzabar – 2013-04-14T08:42:02.100
1
>
ping www.google.com
or atelnet www.google.com 80
do something? 4) what's that ubuntu address supposed to be? All of the 127/8 network is defined as loopback, it looks suspicious to me.Do you control your DNS? Can you you not create aliases there? – jim mcnamara – 2013-04-15T02:36:41.573