Friday, August 02, 2013

Could not resolve host: mirrors.fedoraproject.org; Name or service not known...

In VirtualBox. Turns out it is easy to fix...

[root@localhost ~]# vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
[root@localhost ~]#

However, this file is auto generated by network-manager, so you need to add the following to the appropriate /etc/sysconfig/network-scripts/ifcfg-* file:

PEERDNS="no"
DNS1="8.8.8.8"
DNS2="8.8.4.4"

And restart the network manager:

[root@localhost ~]# systemctl restart network

Should all work perfectly...