How To Install adns on Fedora 34

adns is Advanced, easy to use, asynchronous-capable DNS client library Advanced, easy to use, asynchronous-capable DNS client library

Introduction

In this tutorial we learn how to install adns on Fedora 34.

What is adns

adns is a resolver library for C (and C++) programs. In contrast with the existing interfaces, gethostbyname et al and libresolv, it has the following features - It is reasonably easy to use for simple programs which just want to translate names to addresses, look up MX records, etc. - It can be used in an asynchronous, non-blocking, manner. Many queries can be handled simultaneously. - Responses are decoded automatically into a natural representation for a C program - there is no need to deal with DNS packet formats. - Sanity checking (eg, name syntax checking, reverse/forward correspondence, CNAME pointing to CNAME) is performed automatically. - Time-to-live, CNAME and other similar information is returned in an easy-to-use form, without getting in the way. - There is no global state in the library; resolver state is an opaque data structure which the client creates explicitly. A program can have several instances of the resolver. - Errors are reported to the application in a way that distinguishes the various causes of failure properly. - Understands conventional resolv.conf, but this can overridden by environment variables. - Flexibility. For example, the application can tell adns to environment variables (for setuid programs), disable sanity checks eg to return arbitrary data, override or ignore resolv.conf in favour of supplied configuration, etc. - Believed to be correct ! For example, will correctly back off to TCP in case of long replies or queries, or to other nameservers if several are available. It has sensible handling of bad responses etc. adns 1.6.0 4.fc34 x86_64 75 k adns-1.6.0-4.fc34.src.rpm fedora Advanced, easy to use, asynchronous-capable DNS client library http GPL+ adns is a resolver library for C (and C++) programs. In contrast with the existing interfaces, gethostbyname et al and libresolv, it has the following features - It is reasonably easy to use for simple programs which just want to translate names to addresses, look up MX records, etc. - It can be used in an asynchronous, non-blocking, manner. Many queries can be handled simultaneously. - Responses are decoded automatically into a natural representation for a C program - there is no need to deal with DNS packet formats. - Sanity checking (eg, name syntax checking, reverse/forward correspondence, CNAME pointing to CNAME) is performed automatically. - Time-to-live, CNAME and other similar information is returned in an easy-to-use form, without getting in the way. - There is no global state in the library; resolver state is an opaque data structure which the client creates explicitly. A program can have several instances of the resolver. - Errors are reported to the application in a way that distinguishes the various causes of failure properly. - Understands conventional resolv.conf, but this can overridden by environment variables. - Flexibility. For example, the application can tell adns to environment variables (for setuid programs), disable sanity checks eg to return arbitrary data, override or ignore resolv.conf in favour of supplied configuration, etc. - Believed to be correct ! For example, will correctly back off to TCP in case of long replies or queries, or to other nameservers if several are available. It has sensible handling of bad responses etc.

We can use yum or dnf to install adns on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install adns.

Install adns 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 adns using dnf by running the following command:

sudo dnf -y install adns

Install adns 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 adns using yum by running the following command:

sudo yum -y install adns

How To Uninstall adns on Fedora 34

To uninstall only the adns package we can use the following command:

sudo dnf remove adns

adns Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/35
/usr/lib/.build-id/35/32edf02ee79ac380935290ac91c79deffac96a
/usr/lib/libadns.so.1
/usr/lib/libadns.so.1.6
/usr/share/doc/adns
/usr/share/doc/adns/README
/usr/share/doc/adns/TODO
/usr/share/doc/adns/changelog
/usr/lib/.build-id
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/054428db69fd674af04062a95bbb522ec242fa
/usr/lib64/libadns.so.1
/usr/lib64/libadns.so.1.6
/usr/share/doc/adns
/usr/share/doc/adns/README
/usr/share/doc/adns/TODO
/usr/share/doc/adns/changelog

References

Summary

In this tutorial we learn how to install adns on Fedora 34 using yum and dnf.