I am investigating sharing a NAS SMB share across two different subnets. The two subnets eventually connect over a firewall, however traffic on each subnet can directly connect to the NAS bypassing the firewall.

The NAS has the following IPs (they are also on VLANs)

nas-media.              3600    IN      A
nas-media.              3600    IN      A

If a client on decides to map a drive to the nas-media hostname, is it smart enough to pick the address in lieu of (suppose the client is Windows 7).

For anyone wondering why, the .30. network is for utility servers and .10. is a home network. The NAS is physically connected to a layer3 switch to which all servers are connected to as well as the firewall (dhcp, WAN, et al).

Right now all traffic from .10. will route to the firewall, and then bounce to the current IP for the NAS. The port is a single 1Gbps ethernet connection and I am looking at this mainly for traffic management.


This is almost certainly going to come down to a question of how your client OS's DNS resolver and TCP connection APIs work, not anything SMB-specific.

I doubt you can rely on the client always prefering a local subnet IP address when receiving more than one A record.


SMB/CIFS can not talk by names between different subnets, but they can talk by IP if you would set correct routing rules between subnets. So you can access your NAS from clients as \\ip.ip.ip.ip\share from "alien's" sub network.

  • I think you're conflating browsing (service discovery) and name resolution, but there are ways to make both work across subnets for SMB/CIFS. – Spiff Jan 11 '17 at 6:38
  • @Spiff may be i miss something, but OP want to map SMB share to drive. Since DNS record contained more than one IPs I'm pretty sure that the only reliable way to map such network drive would be possible by IP only bypassing name resolution completely. Correct me pls if I'm wrong – Alex Jan 11 '17 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.