{
  "id": 5477726,
  "title": "Guide to DNS on Ubuntu 26.04",
  "url": "https://urgent.news/2026/09/04/guide-to-dns-on-ubuntu-26-04",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-04T02:36:06.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/peculiarengineer/guide-to-dns-on-ubuntu-2604-1fk"
  },
  "original_language": "en",
  "account": "When you run a name lookup on an Ubuntu 26.04 server, there are two layers involved: the C library's name lookup and the resolver. The first layer is the C library's lookup, which consults /etc/hosts first and then uses the resolver. This layer is responsible for turning a name into an address, and it never involves a network round trip. The second layer is the resolver, which in Ubuntu 26.04 is systemd-resolved. This resolver is listening on 127.0.0.53 and handles caching and forwarding your question to the right upstream server based on the network interface. Programs like ping, curl, ssh, and Python scripts all go through the first layer, while dig, host, and nslookup can skip the first layer entirely and talk directly to the resolver. To check the current configuration, you can run resolvectl status, which shows the upstream servers and the protocols used (in this case, LLMNR and mDNS).",
  "summary": "For years my understanding of DNS on a Linux box was one file. /etc/resolv.conf has a nameserver line, that is where lookups go, done. Then at some point I opened it on an Ubuntu server and it said nameserver 127.0.0.53 , which is a DNS server I never installed, running on an address I never configured, and I closed the file and got on with my day. I have since written a Netplan post and three…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}