[Yum] PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Nicolas BOSC nicolas.bosc at univ-orleans.fr
Mon Oct 28 07:31:24 UTC 2013


Hello,

The content of /etc/sysconfig/network is:
NETWORKING_IPV6=no
NETWORKING=yes
HOSTNAME=192.168.11.218

/etc/sysconfig/network-scripts/ifcfg-eth0 is:
EVICE=eth0
#BOOTPROTO="dhcp"
BOOTPROTO=none
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="*****************************"
IPADDR=192.168.11.218
PREFIX=24
NETWORK=192.168.11.1
NETMASK=2555.255.255.0
DNS1=194.167.31.3
DEFROUTE=yes
###### next two lines added to test
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
DNS2=194.167.30.130
GATEWAY=192.168.11.1
USERCTL=no
HWADDR=****************
LAST_CONNECT=1382626237

/var/lib/dhclient/dhclient-eth0.leases contains:

lease {
   interface "eth0";
   fixed-address 192.168.11.59;
   option subnet-mask 255.255.255.0;
   option dhcp-lease-time 86400;
   option routers 192.168.11.1;
   option dhcp-message-type 5;
   option dhcp-server-identifier 192.168.11.1;
   option domain-name-servers **************,**************;
   renew 4 2013/10/24 16:49:26;
   rebind 5 2013/10/25 03:38:53;
   expire 5 2013/10/25 06:38:53;
}
lease {
   interface "eth0";
   fixed-address 192.168.11.59;
   option subnet-mask 255.255.255.0;
   option routers 192.168.11.1;
   option dhcp-lease-time 86400;
   option dhcp-message-type 5;
   option domain-name-servers **************,**************;
   option dhcp-server-identifier 192.168.11.1;
   renew 4 2013/10/24 20:43:42;
   rebind 5 2013/10/25 06:12:51;
   expire 5 2013/10/25 09:12:51;
}

This is strange, why is the fixed-adress does not end with 218? In  
addition, ifconfig returns:

eth0      Link encap:Ethernet  HWaddr ****************
           inet adr:192.168.11.218  Bcast:192.168.11.255   
Masque:255.255.255.0
           adr inet6: ff80::6e3b:e5ff:fe0d:95f9/64 Scope:Lien
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:5917 errors:0 dropped:0 overruns:0 frame:0
           TX packets:3833 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 lg file transmission:1000
           RX bytes:6318848 (6.0 MiB)  TX bytes:471833 (460.7 KiB)
           Interruption:20 Mémoire:ef300000-ef320000

lo        Link encap:Boucle locale
           inet adr:127.0.0.1  Masque:255.0.0.0
           adr inet6: ::1/128 Scope:Hôte
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:16 errors:0 dropped:0 overruns:0 frame:0
           TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 lg file transmission:0
           RX bytes:1000 (1000.0 b)  TX bytes:1000 (1000.0 b)

To finish:
[root at 192 nico]# ip  -f inet6 addr show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
     inet6 fe80::6e3b:e5ff:fe0d:95f9/64 scope link
        valid_lft forever preferred_lft forever

I do not know if there are expected values.

What should I do know?

Thank you

Nicolas

Le Thu, 24 Oct 2013 23:10:07 +0200, Tru Huynh <tru at pasteur.fr> a écrit:

> On Thu, Oct 24, 2013 at 09:06:13AM +0200, Nicolas BOSC wrote:
>> Indeed the "IP" on the search line is not correct.
>>
>> If I add the 192, nothing changes.
> it should be something like:
> search univ-orleans.fr
> or
> search my.local.lan
> if your IT has defined it for 192.168.x.y
>> If I remove this line, it comes
>> back after I reboot. Even if I remove Networkmanager, it comes
>> back...
> that's expected if your private non routable network if managed by a  
> dhcp server.
> Check:
> /etc/sysconfig/network
> /etc/sysconfig/network-scripts/ifcfg-eth0
> /var/lib/dhclient/dhclient-eth0.leases
>
> What does:
> $ ip  -f inet6 addr show eth0
> Just to be sure that you don't have ipv6 enabled ;)
>
> Tru


More information about the Yum mailing list