How To Install resolv_wrapper on CentOS 7
Introduction
In this tutorial we learn how to install resolv_wrapper
on CentOS 7.
What is resolv_wrapper
It is likely that if you have a server/client architecture, you need to do DNS queries or a third party library, like Kerberos needs to be able to do queries. In the case of Kerberos the client needs to look the address of the KDC up via a SRV record. resolv_wrapper is able to either redirect all DNS queries to your DNS server implementation, or fake DNS replies! To use it set the following environment variables LD_PRELOAD=libresolv_wrapper.so RESOLV_WRAPPER_CONF=./my_resolv.conf This package doesn’t have a devel package because this project is for development/testing.
We can use yum
or dnf
to install resolv_wrapper
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install resolv_wrapper.
Install resolv_wrapper on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install resolv_wrapper
using yum
by running the following command:
Install resolv_wrapper on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install resolv_wrapper
using dnf
by running the following command:
How To Uninstall resolv_wrapper on CentOS 7
To uninstall only the resolv_wrapper
package we can use the following command:
References
Summary
In this tutorial we learn how to install resolv_wrapper
on CentOS 7 using yum
and dnf
.