How To Install adns on Fedora 36
Introduction
In this tutorial we learn how to install adns
on Fedora 36.
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.
We can use yum
or dnf
to install adns
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install adns.
Install adns on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install adns
using dnf
by running the following command:
sudo dnf -y install adns
Install adns on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
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 36
To uninstall only the adns
package we can use the following command:
sudo dnf remove adns
adns Package Contents on Fedora 36
---
title: "How To Install adns on Fedora 36"
linkTitle: "adns"
type: "docs"
description: "In this tutorial we learn how to install adns in Fedora 36. adns is Advanced, easy to use, asynchronous-capable DNS client library"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/adns-featured.png
---
## Introduction
In this tutorial we learn how to install `adns` on Fedora 36.
### 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.
We can use `yum` or `dnf` to install `adns` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install adns.
## Install adns on Fedora 36 Using dnf
Update yum database with `dnf` using the following command.
```bash
sudo dnf makecache --refresh
After updating yum database, We can install adns
using dnf
by running the following command:
sudo dnf -y install adns
Install adns on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
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 36
To uninstall only the adns
package we can use the following command:
sudo dnf remove adns
adns Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/bdf4eaa0b993810d75e1a706f3e4a418bfb742
/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
References
Summary
In this tutorial we learn how to install adns
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).
/usr/lib/.build-id /usr/lib/.build-id/7f /usr/lib/.build-id/7f/70077d887a9f3212a766f36496a259080140b0 /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
* [adns website](http://www.chiark.greenend.org.uk/~ian/adns/)
## Summary
In this tutorial we learn how to install `adns` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).