Uninstall DNS role on a Windows Core Server 2012 R2 / 2008 R2

So I ran into an interesting issue where I needed to remove a DNS role from a Core Windows box. After googling for serveral minutes, I was able to craft up the command that is used to uninstall the role.

Using the command above the DNS role uninstalled successfully. A reboot was required so that all servers looking at this box would drop their connections, even if they were cached.