Centos 7 error can not resolve host

centos 7 on the virtual machine reported an error

when using yum update
can not resolve host

has been updated well before, and I don"t know why it happened all of a sudden

Mar.09,2021

tried various ways to reset the virtual machine network settings, but it didn't work.
sees a method https://blog.csdn.net/spyiu/a.
is a problem of DNS parsing. Modify / etc/resolv.conf to add an available nameserver for
, and test it for yourself

.
Menu