Let's say I have mydomain.com and my shared webhost server is 22.214.171.124. My domain registrar and webhosting company are 2 different entities.
Currently I have my DNS records configured like this in my registrar DNS Management section:
A *.mydomain.com 126.96.36.199 A mydomain.com 188.8.131.52 CNAME ftp.mydomain.com mydomain.com CNAME www.mydomain.com mydomain.com A subdomain1.mydomain.com 184.108.40.206 A subdomain2.mydomain.com 220.127.116.11 A subdomainN.mydomain.com 18.104.22.168
I have 2 questions/problems:
1) Is there any way to simplify the sub-domain A records so that every time I need to add a new sub-domain to my website I shouldn't have to create a new A record for it in the DNS Management?
2) With the current configuration when the user points to any sub-domain that don't exist (for instance: idontexist.mydomain.com) a default page from cPanel is displayed. I suppose this is the normal behavior? Or should it return a 404 error? If so, how can I make it return a 404 error?