You are not logged in.

#1 2007-10-21 22:13:23

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Entries in /etc/hosts are being ingored.

I added 
209.132.176.175 bugzilla.gnome.org
to /etc/hosts and restarted Xserver, network service and my pppoe connection.
And the entry in /etc/hosts is is being ignored. Any idea how to debug this weird behavior?

Offline

#2 2007-10-21 22:30:14

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Entries in /etc/hosts are being ingored.

What makes you think it's being ignored?

Offline

#3 2007-10-21 22:34:33

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: Entries in /etc/hosts are being ingored.

It doesn't affect firefox. this was working a week ago.

Offline

#4 2007-10-21 22:51:18

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Entries in /etc/hosts are being ingored.

I fail to see how that would affect anything if bugzilla.gnome.org gets resolved to 209.132.176.175 anyway.

bugzilla.gnome.org.     85329   IN      A       209.132.176.175

Offline

#5 2007-10-21 22:59:55

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: Entries in /etc/hosts are being ingored.

lucke, they switched to  209.132.176.175 today. Firefox is still trying to connect to the old IP address of the site.
So I added that entry to /etc/hosts in order to manually fix this but without sucess.

Last edited by hussam (2007-10-21 23:00:15)

Offline

#6 2007-10-21 23:09:08

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Entries in /etc/hosts are being ingored.

Ah, now I see what your problem is :-)

What if you ping bugzilla.gnome.org? Does that reach 209.132.176.175?

-edit-

It seems that Firefox simply doesn't use /etc/hosts at all. Solution (if don't want to wait for your DNS servers to get updated): install dnsmasq, cp /etc/resolv.conf /etc/resolv.conf.2, change nameserver in resolv.conf to 127.0.0.1, change resolv-file to resolv.conf.2 and add bugzilla.gnome.org to address field in dnsmasq.conf and start /etc/rc.d/dnsmasq. You'd have to make sure ppooe doesn't overwrite resolv.conf (it'd have to write to resolv.conf.2). Additional benefit: local caching of DNS queries (=> faster browsing).

Last edited by lucke (2007-10-21 23:23:42)

Offline

#7 2007-10-21 23:37:36

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: Entries in /etc/hosts are being ingored.

ping bugzilla.gnome.org tries to ping 209.132.176.175 but fails. I think this is normal because of some ISP thing. But at least, that one sees the correct IP.
nslookup and host both output the old IP.

Offline

Board footer

Powered by FluxBB