NAS Share Works by IP but Fails by Hostname
Use the same share and account for both tests. Once the share opens by IP, follow the hostname from name resolution through the SMB connection.
You can open \\192.168.50.20\media in Windows or smb://192.168.50.20/media in Finder. The same share fails when you substitute the NAS name. That gives you a working comparison. Keep the client, share, account, and network fixed as you change the address.
Three checks narrow it down. Find out what address the name resolves to, test the SMB port at that address, and check discovery if the NAS is also missing from the network browser.
1. Check the full name your client resolves
Try the NAS's full DNS name, such as nas.home.arpa, and compare it with the short name nas. A short name can depend on the search suffix and local naming services used by that device. If the full name works, use it in shortcuts and check the client's search suffix before changing the NAS. The home.arpa naming standard.
For a unicast DNS name, look it up with DNS Lookup from the failing network. Check that the A record matches the working IPv4 address. If you also get an AAAA record, check that the NAS is reachable at that IPv6 address. A stale answer can point the hostname test to an old address even while the current IP works.
Compare the failing client's answer with a working client's answer. If a local resolver still has an old record, update the local DNS or DHCP registration and let caches expire. A DHCP reservation can help keep the address and name in sync.
2. Test TCP port 445 at the returned address
Modern SMB usually connects directly over TCP port 445. Use TCP/UDP Connect from the affected client to test the known working IP and the address returned for the hostname. If DNS returns both IPv4 and IPv6 addresses, test them individually. Microsoft SMB transport guidance.
| Result | What to check |
|---|---|
| The name returns an old or unexpected IP | Check local DNS records, DHCP registration, and the resolver selected by the client. |
| The name adds an IPv6 address whose port times out | Check that address, the IPv6 listener, and the firewall for IPv6. |
| TCP 445 opens, but the share fails by name | Use the NAS's canonical name and check the share name, cached credentials, and name-specific authentication or alias configuration. |
TCP confirms you can connect to the port. If the failure is at sign-in, use the NAS or domain logs to see what account and server name were used.
Compare the two SMB connection targets
Run the TCP 445 check against the working IP and each address returned for the NAS name. Use the same client network for both.
Get NetDebug Toolkit3. Check mDNS if discovery is missing
If the name ends in .local, your client will normally look for it using multicast DNS on the local link. Open mDNS / Bonjour Browser on the NAS's network segment and look for its SMB advertisement. Some NAS devices accept direct SMB connections without advertising the service, so compare this with your port test. Multicast DNS specification.
When the NAS and client are on different VLANs or connected through a routed VPN, local multicast discovery may stop at the router. If you can reach the NAS by IP across that route, use an internal unicast DNS name that resolves on both sides. Check which local resolver the VPN client is using. Internal DNS for a homelab.
Frequently asked questions
Why does my NAS work by IP but not by name?
Common causes include a stale DNS record, a missing search suffix, mDNS limited to a local segment, and a broken IPv6 path. If the address resolves correctly and TCP 445 opens, check name-specific SMB authentication or alias settings.
Can a NAS still work if it doesn't appear in Finder or File Explorer?
Yes. A direct SMB connection can work even if network discovery misses the device. Open the full share address and test the port separately from discovery.
Should I use nas.local or nas.home.arpa?
Use the name your network actually publishes. A .local name usually uses multicast DNS on the local segment. A home.arpa name needs an internal DNS record but can work across routed networks when their clients can reach the resolver.
NetDebug Toolkit