mydomain.com 86400 IN A 220.127.116.11
*.mydomain.com 86400 IN A 18.104.22.168
I see the "*" and I though that was like a wildcard.
However, the domain is not responding as I would expected. Any entry different than "mydomain.com" and "www.mydomain.com" goes to a "Directory Listing Denied" error.
I think the "www" does work because I see in my control panel I have setup an "alias" for mydomain.com to www.mydomain.com. Though, I don't know what this "alias" (hsphere panel) means in more technical terms.
Definitely it is not a problem with the DNS records, I have other websites working fine with the same config. This is related to IIS.
I see that if I create "ww" or "wwww" as host headers, then the domain responds fine. So, it is a matter of config IIS to respond to all the wildcards.
But, how ? Well, I hope the answer is in that link, I'll take a look.