Interview Prep/Linux/Networking, DNS and firewalls

Short names like `db01` don't resolve, but `db01.corp.example.com` does.

BeginnerTroubleshootingNetworking, DNS and firewalls
Answer

Likely causes → Missing or wrong search domain.

Diagnose →

grep -E '^(search|domain)' /etc/resolv.conf
resolvectl domain

Fix → Set the search domain in the network config: nmcli con mod eth0 ipv4.dns-search corp.example.com && nmcli con up eth0.

Prevent → Prefer FQDNs in application configs anyway.

All Linux questions Roadmap: Linux

More on Networking, DNS and firewalls