It looks like there's a few similar questions but they all seem to want to do this through various HTTP redirects, and I'm looking to do this purely through DNS.
Basically I'm trying to forward all subdomains of a given domain so they resolve to the same-named subdomain of another domain.
E.g.
*.foo.com -> *.bar.com
Therefore any domain would resolve:
blah.foo.com -> blah.bar.com
garbage123.foo.com -> garbage123.bar.com
maybe.ifimlucky.foo.com -> maybe.ifimlucky.bar.com
I'm looking for a product-agnostic solution. Is this possible, or am I stuck wiring up each subdomain manually?
A DNAME record may suffice for this redirect, though I don't know how it will handle sub-sub domains (your
maybe.ifimlucky
example). On the other hand, DNAME records can be very surprising, so ideally would need to be extensively documented (that is, edits to a zone with a DNAME record in it will show a serial change, but still forward elsewhere, so if folks don't know that's going on...)