All subdomains on a domain redirect to one server?

Hi, I'm looking to add sort of a "catch all" for domains to go to one server unless otherwise specified. e.g: *.example.com always goes to: xxx.xx.xxx.xx or test.example.com (bypasses * rule because its defined) goes to: some ip here Is this possible?
1 Reply
Chaika
Chaika2y ago
You can use a proxied wildcard yea: https://blog.cloudflare.com/wildcard-proxy-for-everyone/ Just as simple as creating a DNS Record like A *.example.com, Target: 1.2.3.4, etc. Your origin, the actual recieving server, would have to be configured to accept this though. Any actual subdomain that exists wouldn't be affected by this, and recursion would stop there. If you want an actual redirect (i.e the visitor literally moves from spam.example.com to example.com), you can use an originless wildcard like AAAA *.example.com 100:: Proxied, and then you'd have to use a Dynamic/Single Redirect Rule excluding the subdomains you are using
Want results from more Discord servers?
Add your server