I have a raspberry pi headless torrent box. It downloads torrents to a local SMB share which is mounted with autofs. As I download torrents I also use a VPN. It is set up with OpenVPN and it updates the resolv.conf file with the VPN's DNS servers after (dis)conneting. After this, I can't resolve any local hostnames, and thus autofs can't mount the share.
Is there a way to keep the resolution of the local hostnames?