Wildcard DNS and subdomains
I'm trying to create a domain alias, but I don't really know how to do this. I want all trafic on all ports and all subdomains to be redirected to another domain at the same port with the same subdomain (so any xxx.domain1.com:yy becomes xxx.domain2.com:yy).
Is this possible, and what is the best way to do this? I have full dns and root access to my server, if that's needed.