If you installed mydns as a package from your linux distribution, use the mecahnisms of the pacakege manager of the linux distribution to uninstall it. If you installed it from source, then you dont have to uninstall it, just compile it again and run make install. Regaring ispconfig, there is a uninstall.php script in the install folder of the ispconfig tar.gz file.