Question regarding wildcard DNS on multiple servers
I have created "A record" along with a Wildcard DNS record pointing to my Server 1 IP. Now for server 1, I don't need to create any further DNS records everytime i reverse proxy some new app there
For my server 2, i have to create "A record" every time i want to reverse proxy a new service..is there way possible way i could create a wildcard DNS record for my server IP 2 using the same domain ?
1 Reply
You can have two wildcard A or AAAA records, sure, and if they were proxied Cloudflare would randomly pick one of them to send request to, and if they were unproxied, the browser/client would randomly pick one to send requests to
If you're talking about two servers, handling different domains, and you want to wildcard on the same label (i.e *.example.com), then no that won't really work. Honestly I would recommend not using a wildcard at all if your only purpose is to avoid creating new records, it's more of a footgun then a helper most of the time. If you are worried about cache, just wait ~5s after you add it to try to visit it