π ~1 min read
Table of contents
Symptom & Impact
DNS issues can appear as random network failures while IP connectivity still works.
Environment & Reproduction
pkg cannot resolve hosts, freebsd-update hangs on hostname lookup, and application startup delays occur.
Root Cause Analysis
Hosts using static resolv.conf, DHCP-provided resolvers, or local forwarding resolvers.
Quick Triage
Root access, known good DNS servers, and ability to validate upstream reachability.
Step-by-Step Diagnosis
[image_ref: 0] Run drill pkg.FreeBSD.org; host freebsd.org; ping -c 3 8.8.8.8; cat /etc/resolv.conf; service local_unbound status if used.

Solution – Primary Fix
[image_ref: 1] Ensure /etc/resolv.conf has valid nameserver entries and search domains. If local_unbound is enabled, confirm forward zones are correct.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Set stable resolvers, restart local DNS service where applicable, and verify name resolution before running pkg update. Persist resolver-related daemon flags via sysrc.
Verification & Acceptance Criteria
Repeated lookups return quickly and package repositories resolve without timeout.
Rollback Plan
Restore prior resolv.conf and disable local forwarding if recent DNS changes introduced instability.
Prevention & Hardening
Use at least two resolvers and monitor query latency and SERVFAIL rates.
Related Errors & Cross-Refs
Escalate if intermittent failures correlate with provider-level DNS outages or routing anomalies.
Related tutorial: View the step-by-step tutorial for freebsd-14.
View all freebsd-14 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
resolv.conf(5), host(1), drill(1), FreeBSD DNS operational guidance.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.