How To Install resolv_wrapper on Fedora 34
Introduction
In this tutorial we learn how to install resolv_wrapper
on Fedora 34.
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. resolv_wrapper 1.1.7 1.fc34 x86_64 26 k resolv_wrapper-1.1.7-1.fc34.src.rpm updates A wrapper for dns name resolving or dns faking http BSD 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install resolv_wrapper.
Install resolv_wrapper on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install resolv_wrapper
using dnf
by running the following command:
sudo dnf -y install resolv_wrapper
Install resolv_wrapper on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install resolv_wrapper
using yum
by running the following command:
sudo yum -y install resolv_wrapper
How To Uninstall resolv_wrapper on Fedora 34
To uninstall only the resolv_wrapper
package we can use the following command:
sudo dnf remove resolv_wrapper
resolv_wrapper Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/8f5335a321b32a70458bb3faf14d56a6939b29
/usr/lib/cmake/resolv_wrapper
/usr/lib/cmake/resolv_wrapper/resolv_wrapper-config-version.cmake
/usr/lib/cmake/resolv_wrapper/resolv_wrapper-config.cmake
/usr/lib/libresolv_wrapper.so
/usr/lib/libresolv_wrapper.so.0
/usr/lib/libresolv_wrapper.so.0.0.6
/usr/lib/pkgconfig/resolv_wrapper.pc
/usr/share/doc/resolv_wrapper
/usr/share/doc/resolv_wrapper/AUTHORS
/usr/share/doc/resolv_wrapper/CHANGELOG
/usr/share/doc/resolv_wrapper/README.md
/usr/share/licenses/resolv_wrapper
/usr/share/licenses/resolv_wrapper/LICENSE
/usr/share/man/man1/resolv_wrapper.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/be
/usr/lib/.build-id/be/7a5c15fa653d50af0c7c3aba130aa75e8344e7
/usr/lib64/cmake/resolv_wrapper
/usr/lib64/cmake/resolv_wrapper/resolv_wrapper-config-version.cmake
/usr/lib64/cmake/resolv_wrapper/resolv_wrapper-config.cmake
/usr/lib64/libresolv_wrapper.so
/usr/lib64/libresolv_wrapper.so.0
/usr/lib64/libresolv_wrapper.so.0.0.7
/usr/lib64/pkgconfig/resolv_wrapper.pc
/usr/share/doc/resolv_wrapper
/usr/share/doc/resolv_wrapper/AUTHORS
/usr/share/doc/resolv_wrapper/CHANGELOG
/usr/share/doc/resolv_wrapper/README.md
/usr/share/licenses/resolv_wrapper
/usr/share/licenses/resolv_wrapper/LICENSE
/usr/share/man/man1/resolv_wrapper.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/7c71b1f4fece302133f884f2966eb5f2ab206f
/usr/lib64/cmake/resolv_wrapper
/usr/lib64/cmake/resolv_wrapper/resolv_wrapper-config-version.cmake
/usr/lib64/cmake/resolv_wrapper/resolv_wrapper-config.cmake
/usr/lib64/libresolv_wrapper.so
/usr/lib64/libresolv_wrapper.so.0
/usr/lib64/libresolv_wrapper.so.0.0.6
/usr/lib64/pkgconfig/resolv_wrapper.pc
/usr/share/doc/resolv_wrapper
/usr/share/doc/resolv_wrapper/AUTHORS
/usr/share/doc/resolv_wrapper/CHANGELOG
/usr/share/doc/resolv_wrapper/README.md
/usr/share/licenses/resolv_wrapper
/usr/share/licenses/resolv_wrapper/LICENSE
/usr/share/man/man1/resolv_wrapper.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/00072cb676b324711a73fb4cb0508af2007fa6
/usr/lib/cmake/resolv_wrapper
/usr/lib/cmake/resolv_wrapper/resolv_wrapper-config-version.cmake
/usr/lib/cmake/resolv_wrapper/resolv_wrapper-config.cmake
/usr/lib/libresolv_wrapper.so
/usr/lib/libresolv_wrapper.so.0
/usr/lib/libresolv_wrapper.so.0.0.7
/usr/lib/pkgconfig/resolv_wrapper.pc
/usr/share/doc/resolv_wrapper
/usr/share/doc/resolv_wrapper/AUTHORS
/usr/share/doc/resolv_wrapper/CHANGELOG
/usr/share/doc/resolv_wrapper/README.md
/usr/share/licenses/resolv_wrapper
/usr/share/licenses/resolv_wrapper/LICENSE
/usr/share/man/man1/resolv_wrapper.1.gz
References
- [resolv_wrapper website](http://cwrap.org/ http://cwrap.org/)
Summary
In this tutorial we learn how to install resolv_wrapper
on Fedora 34 using yum and dnf.