CertGrid CertGrid
Troubleshooting·LPIC-2

Reading a DNS answer: NXDOMAIN and REFUSED

dig +short returning nothing looks the same whether the name does not exist, the server refuses to answer, or the server is not there. The status line distinguishes them, and this guide produces all three against a real server so the difference is visible rather than described.

202: DNS Guide 9 of 29 Intermediate

The server at .78 runs BIND for the length of this page; the client at .80 runs no DNS software at all and is where every answer is checked from.
Server NameIP AddressOSRolesCPURAMHDD
LPIC2-A01192.168.0.78Ubuntu 26.04 LTSPrimary service host - BIND, Apache, Samba, Postfix. Topic 204 RAID runs on loop devices; this machine has no spare disk2 Core4 GB50 GB
LPIC2-C01192.168.0.80Ubuntu 26.04 LTSClient - resolves, mounts and connects, so every service is proven from a machine that is not running it2 Core4 GB50 GB

This guide includes

Use this because dig +short returning nothing looks identical in three different situations. This matters because the name not existing, the server refusing, and nothing listening are three separate faults wearing one appearance.

Before you start

  1. A name that does not exist

  2. A name outside this server's zone

  3. And when nothing is there at all

Official sources