I bought a domain from Google Domains. I have an A record (on Google Domains DNS control panel) pointed to my server's IP. I had a www
CNAME record pointed to mydomain.tld
. To experiment with my hosting panel's DNS (I have VestaCP) I deleted the www
record from Google Domains DNS panel. There was already a www
A record on VestaCP DNS panel. I deleted that and added a www
CNAME record pointing to mydomain.tld
. And suddenly my www.mydomain.tld
stopped resolving. I also tried adding a test
A record but I couldn't ping `test.mydomain.tld'.
So, how does hosting panel's DNS work? Each time I add a new website (be it a sub domain or a new domain itself) VestaCP creates certain DNS records. Are these DNS records supposed to override the ones in domain registrar's DNS panel or vice versa? What are DNS records in VestaCP DNS are there for?