Dns
DNS configuration, troubleshooting, and command-line lookup tools.
How to Edit Your Hosts File on Linux, Windows, and macOS
The hosts file maps domain names to IP addresses locally, overriding DNS. This guide explains how to edit /etc/hosts on Linux, macOS, and Windows with examples for testing, blocking, and local development.

host Command in Linux: DNS Lookup
The host command is a simple DNS lookup tool. This guide covers forward and reverse lookups, querying specific record types, using a chosen name server, and reading the output.

nslookup Command in Linux: Query DNS Records
The nslookup command queries DNS servers for domain records. This guide covers A, MX, NS, TXT, and AAAA lookups, reverse DNS, interactive mode, and choosing a specific name server.

dig Command in Linux: DNS Lookup
The dig command is a DNS lookup tool for querying name servers. This guide covers querying record types, reverse lookups, tracing resolution paths, and verifying DNSSEC.

whois Command in Linux: Query Domain Registration Info
The whois command looks up domain registration, registrar, name server, expiry, IP allocation, and AS number details from Linux.

How to Set DNS Nameservers on Ubuntu 18.04
The DNS nameservers (resolvers) are servers which are used by other devices to perform DNS lookup for a requested domain. In this guide, we’ll explain how to configure the DNS nameservers (resolvers) on Ubuntu 18.04.



