How To Install nss-mdns on Fedora 36

In this tutorial we learn how to install nss-mdns in Fedora 36. nss-mdns is glibc plugin for .local name resolution

Introduction

In this tutorial we learn how to install nss-mdns on Fedora 36.

What is nss-mdns

nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local. nss-mdns provides client functionality only, which means that you have to run a mDNS responder daemon separately from nss-mdns if you want to register the local host name via mDNS (e.g. Avahi).

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

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

sudo dnf -y install nss-mdns

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

sudo yum -y install nss-mdns

How To Uninstall nss-mdns on Fedora 36

To uninstall only the nss-mdns package we can use the following command:

sudo dnf remove nss-mdns

nss-mdns Package Contents on Fedora 36

---
title: "How To Install nss-mdns on Fedora 36"
linkTitle: "nss-mdns"
type: "docs"
description: "In this tutorial we learn how to install nss-mdns in Fedora 36. nss-mdns is glibc plugin for .local name resolution"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/nss-mdns-featured.png
---

## Introduction

In this tutorial we learn how to install `nss-mdns` on Fedora 36.

### What is `nss-mdns`

> nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution via Multicast DNS (aka Zeroconf, aka Apple Rendezvous, aka Apple Bonjour), effectively allowing name resolution by common Unix/Linux programs in the ad-hoc mDNS domain .local.  nss-mdns provides client functionality only, which means that you have to run a mDNS responder daemon separately from nss-mdns if you want to register the local host name via mDNS (e.g. Avahi).  

We can use `yum` or `dnf` to install `nss-mdns` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install nss-mdns.

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

sudo dnf -y install nss-mdns

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

sudo yum -y install nss-mdns

How To Uninstall nss-mdns on Fedora 36

To uninstall only the nss-mdns package we can use the following command:

sudo dnf remove nss-mdns

nss-mdns Package Contents on Fedora 36

/lib64/libnss_mdns.so.2
/lib64/libnss_mdns4.so.2
/lib64/libnss_mdns4_minimal.so.2
/lib64/libnss_mdns6.so.2
/lib64/libnss_mdns6_minimal.so.2
/lib64/libnss_mdns_minimal.so.2
/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/01232c4aa7e4143f9365dbb44c83eb532d760b
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/893016aa3a004af2a2848b122e3b66a92d2835
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/02cc9edece7aacd2fb3cf905d860361e4dc1d4
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/f7992291a81ab6c5b40eaa0e7ae90e12080057
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/31fcee8cef54b7635587a4de677a3bfc02dda6
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/461d55e34f82892fff98869493b1faba410e52
/usr/share/doc/nss-mdns
/usr/share/doc/nss-mdns/ACKNOWLEDGEMENTS.md
/usr/share/doc/nss-mdns/NEWS.md
/usr/share/doc/nss-mdns/README.md
/usr/share/licenses/nss-mdns
/usr/share/licenses/nss-mdns/LICENSE

References

/lib/libnss_mdns.so.2 /lib/libnss_mdns4.so.2 /lib/libnss_mdns4_minimal.so.2 /lib/libnss_mdns6.so.2 /lib/libnss_mdns6_minimal.so.2 /lib/libnss_mdns_minimal.so.2 /usr/lib/.build-id /usr/lib/.build-id/00 /usr/lib/.build-id/00/6ffb3e72c85502e840d63b27cc0f1b548b1bd9 /usr/lib/.build-id/0a /usr/lib/.build-id/0a/054bc3cfffef7bf75f9c9fa8213a68f624cc98 /usr/lib/.build-id/25 /usr/lib/.build-id/25/f641d4b99bd238c68798650190eace457f1680 /usr/lib/.build-id/87 /usr/lib/.build-id/87/a8608fecec302ed4cff9d850f95a4ba3dbfcda /usr/lib/.build-id/9d /usr/lib/.build-id/9d/74a6e4ff92d7a0413766810d1fd902a4d9b8a1 /usr/lib/.build-id/be /usr/lib/.build-id/be/7488aefd63c916f803bb86df3daf086b355254 /usr/share/doc/nss-mdns /usr/share/doc/nss-mdns/ACKNOWLEDGEMENTS.md /usr/share/doc/nss-mdns/NEWS.md /usr/share/doc/nss-mdns/README.md /usr/share/licenses/nss-mdns /usr/share/licenses/nss-mdns/LICENSE

Summary

In this tutorial we learn how to install nss-mdns on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


## References

* [nss-mdns website](https://github.com/lathiat/nss-mdns)

## Summary

In this tutorial we learn how to install `nss-mdns` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).