Score:0

Is there a way to use a wildcard with a suffix for DNS records in Cloudflare?

bv flag

Suppose there is a domain .example.com. I want to separate it into 2 parts eg:

*-new.example.com -----> IP1

such that all dns with suffix -new point to IP1

*-old.example.com -----> IP2

such that all dns with suffix -old point to IP2

I tried this but giving *-new.example.com in cloudfare is not sending the request to IP1

Is there a way that this can be achieved?

Score:1
US flag
lu4t

You can create page rules (up to 3 on the free tier) to do the matching.

Define a rule saying: If the URL matches: *-new.example.com then Forwarding URL: IP1

Here you will get some examples with more complex configs: https://developers.cloudflare.com/support/page-rules/recommended-page-rules-to-consider/

Score:0
cn flag

A DNS wildcard is the form *.example.com, the first label must be just * and nothing else.

*-new.example.com is not a DNS wildcard and won't work as such.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.