issue with bulk redirects
Having issues setting up bulk redirect for domain to domain. I have set it up according to the cloudflare documentation listed below but the site dose not redirect and ends with a DNS_PROBE_FINISHED_NXDOMAIN.
Redirect all requests from one domain to another domain
https://developers.cloudflare.com/rules/url-forwarding/examples/redirect-all-another-domain/
current setup is a bulk redirect from domain1.com to https://domain2.com with subdomains and Preserve query string. Then I have seen in another post on this discord that adding a DNS record of AAAA of domain1.com with content of 100:: but that didn't solve the issues and still DNS_PROBE_FINISHED_NXDOMAIN.
Am I missing something to setup that's not listed in the documentation? all it says is to add the bulk redirect.
Cloudflare Docs
Redirect requests from one domain to another · Cloudflare Rules docs
In this example the original domain was replaced with a different domain. All functionality was maintained, except for the HTTP service (port 80) …
6 Replies
adding a DNS record of AAAA of domain1.com with content of 100::Did you wait long enough for dns cache to expire/manually clear dns cache? What's the website url, that you're trying to redirect on?
its been like over a hour. trying to redirect old domain to new domain with all subdomains in url intact. tried on phone and other pc's and still not working.
nxdomain is a dns level issue, your dns resolver isn't returning any a/aaaa records for that hostname and not even getting a chance to hit the redirect
could be cache -- default dns resolvers are usually ISP operated, or a dnssec misconfiguration, domain suspension, etc. If you can share the url that doesn't work/redirect would be easy to see
got redirect working now but I guess I read documentation wrong. I Don't think I can do what I want with bulk redirect and would need a redirect for each subdomain.
what I was trying to do is have all subdomains get redirected to new domain. so app.domain1.com would go to app.domain2.com but for all subdomains. currently it will just redirect all subdomains to main domain so say app.domain1.com would just go to domain2.com. Not sure if there is a easier way.
Redirect Rules or Page Rules can do that, Page rules are easier though, to keep the subdomain
*example.com/*
-> https://$1example.com/$2
(you'd need a wildcard proxied dns too, ex: AAAA
*
100::
Proxied
)I have a wildcard dns already. I'll try adding new rules later today.
Got it working, thanks for the help.