nss-tlsd command not found

In this troubleshooting guide we learn how to fix nss-tlsd command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

nss-tlsd: command not found

or when using sudo you get the following error message

sudo: nss-tlsd: command not found

Solutions to nss-tlsd: command not found

How To Fix nss-tlsd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu nss-tlsd is provided by nss-tlsd package.

nss-tlsd 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 daemon to be used in conjunction with the libnss-tls NSS module. The daemon runs in the background, receives name resolving requests over a Unix socket and replies with resolved addresses.

To fix this problem, we can install more using the command below.

sudo apt-get -y install nss-tlsd

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install nss-tlsd.

sudo apt -y install nss-tlsd

Or if you have aptitude installed you can use the following command.

sudo aptitude install nss-tlsd

Summary

In this tutorial we learn how to fix nss-tlsd command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.