Couldn’t resolve host ‘mirrorlist.centos.org

Explain the function of static keyword and final keyword in Java in detail>>>

When learning how to use Yum in centos6, I suddenly reported this exception. The most likely reason is that there is something wrong with the DNS server. Because the error said: unable to resolve the domain name ‘mirrorlist. CentOS. Org’

First of all, we can configure the DNS server by using the graphical interface or by modifying it

/etc/sysconfig/network-scripts/ifcfg-eth0

Add:

DNS1=10.1.1.111

The specific DNS address will be assigned automatically when dynamic allocation is used. It can be obtained by dynamic allocation before static configuration

Similar Posts: