I am follwing a tutorial on installing Postfix with MariaDB support. Since the default /etc/yum.repos.d/CentOS-Base.repo repo doesn't support Postfix with MariaDB, I modified the file with exclude=postfix and enabled=1 lines[base]name=CentOS-$releasever - Basemirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infrabaseurl=http://mirrors.linode.com/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7exclude=postfix#released updates[updates]name=CentOS-$releasever - Updatesmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infrabaseurl=http://mirrors.linode.com/centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7exclude=postfix#additional packages that may be useful[extras]name=CentOS-$releasever - Extrasmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infrabaseurl=http://mirrors.linode.com/centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plusmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infrabaseurl=http://mirrors.linode.com/centos/$releasever/centosplus/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7enabled=1I run yum --enablerepo=centosplus install postfix, but got an error:Loaded plugins: fastestmirrorCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was14: curl#6 - Could not resolve host: mirrorlist.centos.org; Unknown errorhttp://mirrors.linode.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - Could not resolve host: mirrors.linode.com; Unknown errorTrying other mirror.Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=centosplus&infra=stock error was14: curl#6 - Could not resolve host: mirrorlist.centos.org; Unknown error    http://mirrors.linode.com/centos/7/centosplus/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - Could not resolve host: mirrors.linode.com; Unknown error    Trying other mirror.failure: repodata/repomd.xml from centosplus: [Errno 256] No more mirrors to try.http://mirrors.linode.com/centos/7/centosplus/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - Could not resolve host: mirrors.linode.com; Unknown errorAny idea what can I do to resolve this?
Installing postfix from centosplus repository Could not resolve host: mirrors.linode.com; Unknown error
centos;yum;repository
Could not resolve host: mirrors.linode.com; Unknown errorEdit your /etc/resolv.conf by adding the following line:nameserver 8.8.8.8 nameserver 8.8.4.4 nameserver 127.0.0.1Adding Google DNS nameservers on the top of your resolv.conf will give  yum a valid DNS servers to resolve IP addresses and hosts