Urgent.News

What's breaking now, across thousands of outlets.

Tech

When "Network Is Down" but the Server Is Fine: Debugging DNS Resolution Failures

You ping the server. It answers. You open the app in a browser. Connection refused — or worse, it hangs for thirty seconds and then times out. The server is up, the cable is plugged in, yet nothing resolves. Nine times out of ten, the problem is not the network at all. It is DNS. I have spent more than a few late nights on this exact symptom. Here is the field-tested path I now follow every time,…

When a network fails but the server operates normally, the issue often lies within DNS resolution. To diagnose this problem, start with basic tests using nslookup or dig commands. If there is no output or a SERVFAIL error, the resolver is at fault. If an IP address resolves correctly but the application still fails, investigate the app or firewall settings. If a domain name cannot be found (NXDOMAIN), the name itself is incorrect or the record has been removed.

On Linux systems, the resolver settings can sometimes be problematic. The file /etc/resolv.conf might have been overwritten by cloud-init, DHCP leases, or VPN clients, which can lead to lookup failures even if raw IP addresses work. If the file shows incorrect nameserver entries, switching to a reliable DNS provider can resolve the issue.

Internal DNS resolvers sometimes cause problems. If the resolver is flaky or caching incorrect information, it may lead to intermittent failures. Clearing the resolver cache with commands like sudo systemd-resolve --flush-caches can often solve the problem.

Firewalls can also block DNS queries. UDP port 53 (and TCP port 53 for larger responses) need to be open for outbound DNS requests. If a firewall rule only allows TCP but not UDP, it may cause some lookups to work while others fail. Checking the firewall settings with commands like nc -vzu 8.8.8.8 53 can help identify this issue.

To prevent DNS issues from causing service outages, it is recommended to pin a known-good DNS resolver in the server configuration. Using a stable pair of DNS servers, such as 8.8.8.8 and 1.1.1.1, and ensuring that the resolver uses these servers for all domains can prevent many DNS-related problems. Restarting the resolver service and ensuring the correct configuration is in place can help maintain stable DNS resolution.

Proactively monitoring DNS latency and setting up alerts can also help catch potential issues before they cause service disruptions.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Codex CLI에서 osFoundry 에이전트 세션으로 작업을 넘기는 방법

다 끝나면 Codex CLI는 자기가 직접 하면 안 되는 일을 osFoundry 의 세션(에이전트, 팀, 루프 중 하나)에 넘길 수 있게 된다. 넘기는 건 세 가지다. 목표, 지금까지 파악한 내용의 요약, 돌려받고 싶은 결과물. 세션 오너한테 알림이 가고, 오너는 Accept and run이나 Decline을 누른다.

하드웨어 세대가 끝나도 훈련 루틴은 남아야 한다

하드웨어 세대가 끝나도 훈련 루틴은 남아야 한다 메타가 Quest 2와 Quest Pro의 지원 종료를 공식화했습니다. 마지막 OS 업데이트는 내년 초, 이후 HorizonOS 개발은 차세대 하드웨어로 옮겨갑니다(출처: Road to VR). 하드웨어 세대가 바뀔 때마다 늘 나오는 질문이 있습니다.

More from Sunday 8 November →