DNS Can Fail While Connectivity Still Works
I learned that successful ping tests do not prove DNS is
functioning. A client can have valid addressing and network
connectivity while name resolution, authentication, or
application access is still broken.
Troubleshoot in Layers
A consistent troubleshooting order makes network problems easier
to isolate:
Addressing → Local connectivity → Gateway or route → DNS →
Port → Service → Firewall → Application
BatPi Backup Troubleshooting – USB HDD Power Issue
Problem
An external USB hard drive connected to BatPi was intended to serve as a local
backup destination. The drive intermittently failed to initialize and occasionally
caused Raspberry Pi boot and stability problems.
Symptoms
- HDD failed to mount consistently
- Clicking and repeated spin-up attempts
- BatPi occasionally failed to boot with the HDD connected
- Drive sometimes required power cycling before becoming available
- Backup storage could not be considered reliable
Troubleshooting
I checked USB devices, storage devices, mounted filesystems, and kernel messages:
lsusb
lsblk
sudo fdisk -l
df -h
dmesg | tail -50
BatPi operated normally when the HDD was disconnected. Reconnecting the drive
reproduced the issue, isolating the problem to the external HDD and its power
requirements.
Root Cause
The mechanical hard drive required more power during spin-up than the Raspberry
Pi USB connection could reliably provide. This caused intermittent initialization
and unreliable backup operation.
Resolution
I moved the HDD backup workload to a Windows system with more reliable power and
storage connectivity.
BatPi continues to provide:
- Pi-hole DNS
- SMB file sharing
- CUPS printing
- Network monitoring and packet capture
- Remote-access testing
Windows Verification
I verified the storage device in PowerShell using:
Get-Disk
Get-Volume
Get-PhysicalDisk
Backup files were then checked to confirm that data was successfully written
and accessible.
Lesson Learned
This issue reinforced the importance of isolating hardware problems before
changing software configuration. A system may support USB storage while still
being unable to reliably power a mechanical hard drive. Moving backups to Windows
provided a more dependable solution while allowing BatPi to focus on network
services.
VLAN Isolation Requires Intentional Exceptions
VLAN segmentation is most useful when communication between
networks is controlled deliberately.
I configured an IoT VLAN with restricted access to the primary
LAN while allowing required DNS traffic to the Pi-hole server
over TCP and UDP port 53.