Fedora 18: can't resolve hosts
5,170
Your problem is most likely that the file /etc/resolv.conf
doesn't have any entries for DNS servers to resolve hostname or IP addresses against.
Here is a basic file:
# Google DNS servers
nameserver 8.8.8.8
nameserver 8.8.4.4
You can use the text editors gedit
(GUI) or nano
(command line) to edit this file and add these lines to it. You'll need to be root to edit this file.
Related videos on Youtube
Author by
Fortisimo
Updated on September 18, 2022Comments
-
Fortisimo almost 2 years
My Fedora 18 machine is having problems with resolving hosts:
Could not resolve host: ...; No address associated with hostname]
HTTP error on [https://lon.auth.api.rackspacecloud.com/v2.0/tokens], curl code [6] message [Could not resolve host: lon.auth.api.rackspacecloud.com; No address associated with hostname]'
How do I fix this?
-
superuser0 about 11 yearsIt is also important to have the content of /etc/resolve.conf and maybe /etc/hosts.
-
drs about 11 yearsAre you having trouble resolving every host with every program or just rackspacecloud.com using
curl
? Can youping google.com
?
-