We have a set of #CIFS #DFS servers in Europe and in America. The clients in Europe expect to automatically mount on the European DFS server, the ones in America in on the American DFS server.
Which works fine on Linux servers joined to the domain, using mount.cifs. If you define everything correctly that is (ad_site in /etc/sssd/sssd.conf, the networks in AD etc).
And still we had Linux servers being slow and getting data from the European DFS server, while others stayed on the American DFS server.... Unmount and mount didn't resolve it. Wireshark showed "Yes it tries the American one... And then moves to the European one!".
At the end, it was a DFS caching issue on the Linux servers: /proc/fs/cifs/dfscache showed the target to be to the EU server.
echo 0 > /proc/fs/cifs/dfscache, then remount, and all was fine again!
Another check in #nagios !