Thu, February 15, 2018 · 1 min read

Fixing fedora 26 update issue on static ip configuration

Fixing fedora 26 update issue on static ip configuration

Error: Curl error (6): Couldn’t resolve host name for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f26&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]

  1. Check the IP information:
[root@server /home/cipher]# ifconfig enp9s0
enp9s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.15.15 netmask 255.255.240.0 broadcast 192.168.15.255
ether 00:1c:23:01:fb:dc txqueuelen 1000 (Ethernet)
  1. Ping to the URL:
[root@server /home/cipher]# ping mirrors.fedoraproject.org
ping: mirrors.fedoraproject.org: Name or service not known
  1. Find the issue is with resolvers:
[root@server /home/cipher]# cat /etc/resolv.conf
# Generated by NetworkManager
search sand.box
  1. Add nameservers 4.2.2.2 and 8.8.8.8:
[root@server /home/cipher]# cat /etc/resolv.conf
# Generated by NetworkManager
search sand.box
nameserver 4.2.2.2
nameserver 8.8.8.8

[root@server /home/cipher]# ping mirrors.fedoraproject.org
PING wildcard.fedoraproject.org (152.19.134.142) 56(84) bytes of data.
64 bytes from vm3.fedora.ibiblio.org (152.19.134.142): icmp_seq=1 ttl=41 time=276 ms
  1. Try updating the packages now:
[root@server /home/cipher]# dnf upgrade -y