What is the name of the domain?
git.redacted-for-privacy.tld
What is the error number?
1002
What is the error message?
DNS points to local or disallowed IP
What is the issue you’re encountering
Cloudflare disallowing connections to my subdomains
What steps have you taken to resolve the issue?
I wanted to configure Cloudflare’s DNS as to mimic VPN-like behavior.
I’ve searched all over the internet first, to see if Cloudflare supports such definitions, didn’t receive a 100% reply in that matter, so I went and configured domain’s DNS to do exactly that, point to my local server’s private address in A record, 192.168.1.20
.
At first everything was working flawlessly (both for my main domain and subdomain), I even managed to obtain let’s encrypt certificates for the domain using DNS-01 challange, managed to launch a working gitlab instance on it too.
All changed when I tried to add a wildcard (*) CNAME to my DNS records to further limit required actions in multiple places when adding a new subdomain domain, then it all stopped working - and all I see is error 1002 “DNS points to local or disallowed IP” - but that is exactly the result I wanted to achieve, to allow my domain to point to private address.
How can I resolve this issue, because I want to keep my business with Cloudflare, but if that is not the way - I will have to migrate back to my registrar’s panel and give up on certificates.
PS. As of right now, only my git subdomain has this issue, I can access main domain just as intended (Pings/Tracert also work pointing me where I wanted).
Best regards
What feature, service or problem is this related to?
DNS records
What are the steps to reproduce the issue?
- Clean out fresh domain’s DNS records
- Add domain’s record pointing to local address: ex.
A 10.0.0.10
- Add alias:
CNAME www
- Add subdomain:
CNAME git
- Add wildcard:
CNAME *