[CentOS] Network guru please help: baffled by missing file

Fri Jul 17 17:42:00 UTC 2009
Filipe Brandenburger <filbranden at gmail.com>

On Fri, Jul 17, 2009 at 13:25, Timothy Murphy<gayleard at eircom.net> wrote:
> Thanks for the reply:
> -----------------------
> [tim at helen ~]$ host mirrors.fedoraproject.org
> mirrors.fedoraproject.org is an alias for wildcard.fedoraproject.org.
> wildcard.fedoraproject.org has address 66.35.62.166
> wildcard.fedoraproject.org has address 80.239.156.215
> wildcard.fedoraproject.org has address 152.46.7.222
> wildcard.fedoraproject.org has address 209.132.176.120
> -----------------------

"host" seems to return the right IPs, but:

> [tim at helen ~]$ wget http://mirrors.fedoraproject.org/mirrorlist
> --14:43:39-- http://mirrors.fedoraproject.org/mirrorlist
> Resolving mirrors.fedoraproject.org... 209.132.176.122

"wget" is resolving it to the wrong IP... (???)

Do you have something strange in /etc/hosts?

What is your /etc/resolv.conf like?

Can you try to use "curl" instead of "wget" to see if it resolves right?

> $ curl http://mirrors.fedoraproject.org/mirrorlist
> # either path=, or repo= and arch= must be specified

Also, use "curl -v http://..." to see to which IP you are connecting.

> I shall run wireshark on my server,
> and see how the requests differ.

As the problem is in domain names, I would say it's either /etc/hosts
or a DNS cache, so sniffing the network won't probably give you many
clues... Does your Windows machine use different resolvers than your
Linux machine?

HTH,
Filipe