Tuesday, October 26, 2021

[DNS] how to config a domain with an IP and all its subdomain with another one

Hi,

with DNS, is it possible to have a domain (example.com) connected to an ip, while all its subdomains are connected to another? In other words, can I insert two A records, one like example.com => 1.2.3.4 and the other like "*.example.com" => 2.4.8.16 (this last one should resolve one.example.com to 2.4.8.16 , but should not resolve example.com)?

I have several subdomains, all managed by a reverse proxy with a unique ip, and the only solution I have found is to add an A entry for each subdomain... but this is not really easy.

Suggestions? Thanks a lot!!!

(note: dns are managed by cloudflare; I need https and certificate too)



No comments:

Post a Comment