Linux Networking & Connectivity • Linux & Open Source
Linux Can Reach Addresses but Names Fail
Inspect the intended resolver and name scope before replacing DNS configuration.
Protect the data first. Work only on systems, files and accounts you own or are authorized to manage. Identify the exact distribution, device and path before changes. Keep independent verified backups and required recovery keys. Do not format wanted data, run unexplained privileged commands or apply broad permission resets. A filesystem repair needs its supported unmounted/offline procedure. Plan console access and downtime for remote or service changes.
First — identify the distribution, context and task
Record the distribution/release, desktop or server role, account, target path or device and exact error. These guides label Ubuntu and GNOME examples; other distributions, desktops and app versions use different controls. Use supported instructions for your actual release. Screenshots illustrate sample values and are not evidence of your system state. Read each command and its target before using it.
What you’ll need
Current distribution and application documentation · Authorized ordinary account and elevation only when needed · Private error/time notes · Independent backups and required keys · Correct device/path identity · Console and recovery plan for disruptive changes
Step 1 — Identify the exact name and service
Record the failed hostname, intended service, network/VPN and error. Distinguish a public name, local device name and internal domain resource. Check whether address access works through the same intended service.
What to look for: The failed lookup and correct expected scope.
What the result means: A website name and an internal domain name may require different resolution paths.
Step 2 — Read the active network and resolver
Inspect the actual connection’s DNS settings. On systems using systemd-resolved, resolvectl status can show active per-link resolvers and domains. On another stack use its documented tool. Do not assume all Linux systems use resolved.
What to look for: The resolver chosen for this connection and domain.
What the result means: A listed global DNS value may not be the one selected for a VPN-specific name.
Step 3 — Compare the intended lookup path
Use supported resolver tools and a known approved test name. Where available, getent hosts exercises the configured name-service path; it can differ from a tool that queries a DNS server directly. Avoid posting private internal names publicly.
What to look for: Whether the configured resolver can return the required answer.
What the result means: A direct DNS response does not always prove the application uses the same path.
Step 4 — Review VPN, search domains and local overrides
Check the organization’s split-DNS/search-domain plan and documented hosts-file entries. Inspect rather than bulk-delete overrides. Domain members must retain the intended domain-aware resolver design. Do not substitute a public DNS address for private domain service discovery.
What to look for: The rule that selects the correct resolver or local answer.
What the result means: A name may work on the LAN but fail offsite without the approved VPN path.
Step 5 — Correct the owning configuration
Use the actual NetworkManager, Netplan or other supported configuration route. Do not blindly replace /etc/resolv.conf, which may be generated or a managed symbolic link. Keep a rollback and console path before remote network edits.
What to look for: One supported persistent change at the authoritative layer.
What the result means: A manual edit can be overwritten or break per-link name routing.
Step 6 — Verify application resolution and reconnect
Recheck the exact name and intended application, then confirm behavior after an approved connection refresh. Review related internal names and preserve normal firewall/VPN protections. Escalate authoritative record issues to their owner.
What to look for: The original service works through the expected name.
What the result means: Clearing caches alone does not correct a bad authoritative record or wrong resolver.
What did you find?
Distribution, desktop & application help
Use current official documentation for the exact distribution, release, desktop, filesystem, network manager and application. Ubuntu 26.04 installer examples are not universal Linux menus. GNOME app catalog screenshots illustrate the named app and may show a different version from the one installed.
Production services, encrypted storage, directory-managed users and unusual filesystem layouts need their responsible administrator and supported recovery procedure. Start with the exact error rather than a generic root command. Keep credentials, keys, private logs and backup contents out of public posts.
Parts & supplies — only if needed
Most initial checks use the supported tools already available. Buy a USB drive, backup destination or replacement hardware only when the task requires it, after checking exact hardware, capacity, power and distribution support.
Technical references
Techub’s troubleshooting guides are written in plain language and informed by manufacturer documentation. Features and procedures can vary by model. Before following model-specific steps, check the manufacturer’s latest instructions for your exact device.
Ubuntu — Configuring networks - Ubuntu Server documentationresolvectlgetent(1) - Linux manual pageTechub — linux open source.htmlStill need help?
Need help with a Linux task?
Bring the distribution/release, desktop or server context, exact error and checks already tried. Explain whether wanted data has a usable independent backup. Keep credentials, keys, private paths and diagnostic data out of public screenshots.
Visit Techub Services ↗
Knowledge Center • Illustrated Guides • Troubleshooting