Koozali.org: home of the SME Server

Smb name resolution and openvpn

Offline mauro

  • ***
  • 101
  • +0/-0
Smb name resolution and openvpn
« on: September 07, 2017, 11:25:59 AM »
Hi everybody
I have smb name resolution enabled, so that 'ping <pc_name>' works.
However, I have a  problem when a user works from home (connected via openvpn) and then comes back to the office. In that case, pc_name still resolves to the old IP address assigned by openvpn.
The workaround is to stop nmbd, remove /var/lib/samba/wins.dat and restart nmbd; however this is something annoying to do every time.
Any suggestion?
All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer.
-- IBM maintenance manual (1975)