I got a domain (say example.com) and a server (say IP 18.104.22.168). I want to relay every traffic which is requested from the domain to my server. Every subdomain should be handled like this (so wildcard DNS). There should be one exception: The subdomain
mail.example.com should be routed to another ip (say IP 22.214.171.124)
My previous hoster made the following zone-file for the dns server for me:
@ IN A 126.96.36.199 mail IN A 188.8.131.52 * IN CNAME @
Now, my new DNS-Hoster claims this is invalid and proposes this new zone file to me:
@ IN A 184.108.40.206 mail IN A 220.127.116.11 * IN A 18.104.22.168
Is the first one realy wrong? Is the second one correct and does what I want?
I already read I a Wildcard CName DNS Record Valid, so the first one should not be wrong but only unsuported.