[CentOS] yum errors

Tue Dec 8 16:30:42 UTC 2015
Wes James <comptekki at me.com>

> On Dec 8, 2015, at 9:03 AM, Tru Huynh <tru at centos.org> wrote:
> 
> Hi,
> 
> 
> On Tue, Dec 08, 2015 at 08:24:34AM -0700, Wes James wrote:
>> 
> <please trim your replies>
> ...
>> 
>> nslookup works:
>> 
>> Non-authoritative answer:
>> Name:	mirrorlist.centos.org
>> Address: 108.61.16.227
>> Name:	mirrorlist.centos.org
>> Address: 84.22.180.89
>> Name:	mirrorlist.centos.org
>> Address: 88.150.173.218
>> 
>> but wget fails??
>> 
>> $ wget "http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock"
>> --2015-12-08 08:04:15--  http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock
>> Resolving mirrorlist.centos.org... 199.187.126.90
>> Connecting to mirrorlist.centos.org|199.187.126.90|:80... 
>> failed: Connection timed out.
>> Retrying.
> why does your wget hit 199.187.126.90 when your DNS says
> 108.61.16.227|84.22.180.89|88.150.173.218 ?
> 
> Bad http proxy in the way?
> 
> Tru
> 

I started poking around in /etc/resolve.conf, /etc/nsswitch.conf and /etc/hosts and guess what I found in /etc/hosts?


199.187.126.90 mirrorlist.centos.org <http://mirrorlist.centos.org/>


Not sure why the previous admin did this.  Is it an old mirror IP??  

I commented that line out and now yum update is working.

Insanity reigns…..

Thanks for everyones help :)

-wes