14: PYCURL ERROR 6 - Couldn't resolve host

Issues related to configuring your network
charles07
Posts: 1
Joined: 2013/11/13 14:27:48

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by charles07 » 2013/11/13 14:30:52

:D I restarted the system after editing the following file as you said. :D

/etc/sysconfig/network-scripts/ifcfg-eth0 content is:
[root@192 nico]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=none
NM_CONTROLLED="yes"
ONBOOT=yes TYPE="Ethernet"
UUID="e371111c-34b9-411d-b7f1-0c575cc1e250"
IPADDR=192.168.11.218
PREFIX=24
GATEWAY=192.168.11.1
DNS1= ................................
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="System eth0"
HWADDR=6C:3B:E5:0D:95:F9
DNS2= .............................
LAST_CONNECT=1359387159

dcg9381
Posts: 4
Joined: 2013/12/02 22:48:26

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by dcg9381 » 2013/12/04 18:03:56

TrevorH wrote:yum is not the problem.
Edit /etc/resolv.conf and add the line `nameserver 8.8.8.8` to use Google's nameserver. Now try again.
I have the same issue - today. After a "yum clean" - I couldn't resolve any repos:

Code: Select all

[root@lakebox dginther]# yum update
Loaded plugins: dellsysid, fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el6&basearch=x86_64&native=1&dellsysidpluginver=unreleased_version error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'linux.dell.com'"
Error: Cannot find a valid baseurl for repo: dell-omsa-indep
I rely on my local DNS router (192.168.1.254) for DNS.
I added 8.8.8.8 to /etc/resolve.conf as the top entry and things worked fine.

I believe Google (8.8.8.8) supports IPV6 and my local router does not, I wonder if that's the cause of some of this trouble.

SrujanReddy
Posts: 1
Joined: 2014/01/03 05:09:23

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by SrujanReddy » 2014/01/03 05:12:08

I got the same error... I tried disabling ipv6, and yum update started working for me... try it

http://www.hosting.com/support/linux/ho ... nd-centos/

This link has the details of how to uninstall IPV6...

despe
Posts: 19
Joined: 2013/05/03 13:15:55

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by despe » 2014/01/07 14:35:51

Hello,

My problem is still there and I don't see any solution...

Recently, we have been instructred to use a proxy. I modify the yum.conf file adding the proxy adress.

Unfortunately, that didn't solve anything, but at least I get a new message when I try to use yum!
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 5 - "Couldn't resolve proxy 'cachenonauth.univ-orleans.fr'"
Error: Cannot find a valid baseurl for repo: base
So now, that is the proxy that can't be resolved!!! :roll:

I think it confirms the name resolution is broken... Help me please!!!

kamalisto
Posts: 1
Joined: 2014/01/14 03:21:21

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by kamalisto » 2014/01/14 03:23:08

despe wrote:Hello,

My problem is still there and I don't see any solution...

Recently, we have been instructred to use a proxy. I modify the yum.conf file adding the proxy adress.

Unfortunately, that didn't solve anything, but at least I get a new message when I try to use yum!
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 5 - "Couldn't resolve proxy 'cachenonauth.univ-orleans.fr'"
Error: Cannot find a valid baseurl for repo: base
So now, that is the proxy that can't be resolved!!! :roll:

I think it confirms the name resolution is broken... Help me please!!!
Please look at this solution
http://www.rohitmenon.com/index.php/how ... tos-org-2/

despe
Posts: 19
Joined: 2013/05/03 13:15:55

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by despe » 2014/01/14 09:44:01

Please look at this solution
http://www.rohitmenon.com/index.php/how ... tos-org-2/
Unfortunately it only disabled "network manager". So I am disconnected me from Internet, but the error message when I try yum has not changed...

Thank you.

adevans
Posts: 1
Joined: 2014/03/07 00:54:02

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by adevans » 2014/03/07 01:17:54

I ran into this problem and discovered that it was due to the fact that I had commented out "dns" on the line for hosts in /etc/nsswitch.conf.

/etc/nsswitch.conf defines methods for resolving numerous things, one of them is hosts. The default setting for hosts is "files dns", the line looks like so...

hosts: files dns

and I commented dns out to speed up the login process when I ssh to the box. (uncommented causes a several second delay between UID and password prompt)

hosts: files #dns

After this change yum could not resolve any host and Firefox could not resolve any URLs. When I uncommented it everything started working again.

Hope this helps someone.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by TrevorH » 2014/03/07 09:19:00

As an off topic aside, the correct way to stop a delay with ssh trying to reverse lookup is to use the UseDNS parameter in sshd_config... or fix your DNS so it resolves correctly.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jtbldrco
Posts: 1
Joined: 2014/07/31 17:08:18

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by jtbldrco » 2014/07/31 17:14:44

When following this PSQL Install approach (x64_64) -

http://www.if-not-true-then-false.com/2 ... -hat-rhel/

Adding the entries to /etc/resolv.conf worked for me (CentOS 6.3) - I added both:

nameserver 8.8.8.8
nameserver 8.8.4.4

Fixed this error -

# yum install postgresql92 postgresql92-server postgresql92-contrib
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... 64&repo=os error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.fedoraproject.org'"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... epo=extras error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6 ... po=updates error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Slater
Posts: 5
Joined: 2014/08/22 15:45:09

Re: 14: PYCURL ERROR 6 - Couldn't resolve host

Post by Slater » 2014/08/22 18:52:00

It seems to me that the "search 168.11.218" is spureous or wrong. Try deleting it.
I have noticed that sometimes it appears without reason in DNS search erroneous data. If this is the case:
run the command
system-config-network
go to DNS configuration, check that at least one of the DNS's is correct and delete (leave it blank) or repair (put a valid address) in the field "DNS search path".

After that restart the network and let us know.

Post Reply