Dear,
I notice that When connecting to Ferrumgate on osx, i have to flush dns cache to avoid weird résolution.
CAN You add this When connected ? The same way you change dns configuration.
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Maybe sudo is not required.