How To Install libnss-tls on Kali Linux

In this tutorial we learn how to install libnss-tls on Kali Linux. libnss-tls is NSS module for encrypted DNS name resolution

Introduction

In this tutorial we learn how to install libnss-tls on Kali Linux.

What is libnss-tls

libnss-tls is:

nss-tls is an alternative, encrypted name resolving library to use with glibc, which uses DNS-over-HTTPS (DoH).

The glibc name resolver can be configured through nsswitch.conf(5) to use nss-tls instead of the DNS resolver, or fall back to DNS when nss-tls fails.

This way, all applications that use the standard resolver API (getaddrinfo(), gethostbyname(), etc’), are transparently migrated from DNS to encrypted means of name resolving, with zero application-side changes and minimal resource consumption footprint. However, nss-tls does not deal with applications that use their own, built-in DNS resolver.

This package contains the NSS module, a tiny client library, which delegates the resolving work to nss-tlsd through the Unix socket and passes the results back to the application, without dependencies other than libc.

There are three methods to install libnss-tls on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libnss-tls Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libnss-tls using apt-get by running the following command:

sudo apt-get -y install libnss-tls

Install libnss-tls Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnss-tls using apt by running the following command:

sudo apt -y install libnss-tls

Install libnss-tls Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libnss-tls using aptitude by running the following command:

sudo aptitude -y install libnss-tls

How To Uninstall libnss-tls on Kali Linux

To uninstall only the libnss-tls package we can use the following command:

sudo apt-get remove libnss-tls

Uninstall libnss-tls And Its Dependencies

To uninstall libnss-tls and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libnss-tls

Remove libnss-tls Configurations and Data

To remove libnss-tls configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libnss-tls

Remove libnss-tls configuration, data, and all of its dependencies

We can use the following command to remove libnss-tls configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnss-tls

Dependencies

libnss-tls have the following dependencies:

References

Summary

In this tutorial we learn how to install libnss-tls package on Kali Linux using different package management tools: apt, apt-get and aptitude.