I'm currently migrating my organization's data from physical Server 2016 machines to a new virtual setup for 2025, while also integrating some RHEL systems. I have a file share currently accessed at \\oldfileshare.example.com, and I need to shift it to \\newfileshare.example.com. My goal is to copy the data while maintaining permissions using robocopy, but I don't want to go through every script or reference that mentions the old server name. Since I have control over DNS, I'm considering taking the old server offline, removing it from Active Directory, and then setting up CNAME records for the aliasing. Will this strategy work effectively, or should I consider other options?
4 Answers
Yes, you can definitely make it work. You’ll need to create a Service Principal Name (SPN) on the new server using the old server's DNS name for the CIFS/SMB share. After the cutover, keep an eye on DNS queries made to the old name to ensure everything is functioning. This way, you can catch any issues that arise before they become critical.
You can also run the command `Netdom computername /add:oldname` on the new machine after the old one is removed from AD. This will register the old name with DNS and set the necessary SPNs automatically. Check out the Microsoft documentation for more details!
Just a heads-up: keeping old server aliases can complicate troubleshooting later on when things go wrong. Your new setup might become unconnected from the old references, creating potential issues in the future. Consider whether you truly need those references or if there's a cleaner way to handle your data.
Have you thought about moving to Distributed File System (DFS) shares? They can really save you from these kinds of headaches in the future and streamline how you handle file shares.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures