Moving site to another subdomain

Is there an easy way to change the subdomain where a multi-site installation lives? There are just 4 sites using subdirectories not subdomains. They do link to each other so there are absolute URLs like mysubdomain.mydomain.com/file