How To Install tlslookup on Kali Linux

In this tutorial we learn how to install tlslookup on Kali Linux. tlslookup is utility like nslookup(1), but uses libnss_tls.so instead of DNS

Introduction

In this tutorial we learn how to install tlslookup on Kali Linux.

What is tlslookup

tlslookup 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 utility program to lookup DNS names using libnss-tls.

There are three methods to install tlslookup 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 tlslookup Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install tlslookup

Install tlslookup Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install tlslookup using apt by running the following command:

sudo apt -y install tlslookup

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

sudo aptitude -y install tlslookup

How To Uninstall tlslookup on Kali Linux

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

sudo apt-get remove tlslookup

Uninstall tlslookup And Its Dependencies

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

sudo apt-get -y autoremove tlslookup

Remove tlslookup Configurations and Data

To remove tlslookup configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge tlslookup

Remove tlslookup configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge tlslookup

Dependencies

tlslookup have the following dependencies:

References

Summary

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