# Linux nameservers and DNS Resolution

DevFeed: [Linux nameservers and DNS Resolution](<https://devfeed.tech/articles/linux-nameservers-and-dns-resolution-20869.md>)

Original publisher: [Read original article](<https://linuxblog.io/linux-nameservers-dns-resolution/>)

Author: Hayden James

Published: 2026-08-10T10:56:20Z

Content type: tutorial

Language: en

Sources: [Hayden James](<https://devfeed.tech/sources/hayden-james.md>)

Topics: [Domain Name System (DNS)](<https://devfeed.tech/topics/dns-resolution-process.md>), [Network Configuration](<https://devfeed.tech/topics/network-configuration.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [dig command examples](<https://devfeed.tech/topics/dig-command-examples.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [configure](<https://devfeed.tech/tags/configure.md>), [dns](<https://devfeed.tech/tags/dns.md>), [dns-servers](<https://devfeed.tech/tags/dns-servers.md>), [domain](<https://devfeed.tech/tags/domain.md>), [failover](<https://devfeed.tech/tags/failover.md>), [fedora](<https://devfeed.tech/tags/fedora.md>), [glibc](<https://devfeed.tech/tags/glibc.md>), [guide](<https://devfeed.tech/tags/guide.md>), [hosting](<https://devfeed.tech/tags/hosting.md>), [ip](<https://devfeed.tech/tags/ip.md>), [linux](<https://devfeed.tech/tags/linux.md>), [resolver](<https://devfeed.tech/tags/resolver.md>), [retries](<https://devfeed.tech/tags/retries.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [sysadmins](<https://devfeed.tech/tags/sysadmins.md>), [troubleshoot](<https://devfeed.tech/tags/troubleshoot.md>)

## AI overview

Linux hostname lookup follows the order configured in /etc/nsswitch.conf; entries in /etc/hosts can therefore take precedence over DNS. DNS server settings are in /etc/resolv.conf, whose nameserver entries are tried in order with retries and failover under the traditional glibc resolver. Search and domain directives affect how short names are expanded, while ndots controls when that suffix is tried. On modern distributions, /etc/resolv.conf may be managed automatically, so direct edits can be overwritten after reboot or network changes. Check whether it is a regular file or a symlink to identify what manages it. The excerpt ends during this explanation and does not provide the promised full troubleshooting steps.

## Source excerpt

A practical guide to DNS resolution on Linux: how /etc/resolv.conf, systemd-resolved, and dig work together, and how to troubleshoot common nameserver failures. Continue reading...