I'm in the process of writing a DirectAdmin DNS replication script that interfaces with Vultr's DNS API. I've run into a problem though. DirectAdmin allows me to create subdomains in two different ways: through "Subdomain Management" (runs out a of a subdirectory in root domain's webroot), and through "Domain Setup" (creates a seperate domain folder with its own webroot), where I just use subname.mydomain.com upon creation. The latter method is often the most preferable to me, and it works nicely. It does create an extra zone file and associated DNS records.
The problem is that Vultr's API doesn't seem to accept these "subdomains" when creating a new domain through their API: "Subdomains are not permitted status: 400". What will happen if I remove the DNS information for these "subdomains" and add only an A record to the root domain's DNS records?
I'm not entirely sure why this type of "subdomain" is even possible/allowed, DNS-wise. I'm using it just for webserver access, but these domains get their own SPF, mail and DKIM records, just like any root domain. Will these resolve if I add the records to the root domain's DNS records? Love to hear from the experts.
The problem is that Vultr's API doesn't seem to accept these "subdomains" when creating a new domain through their API: "Subdomains are not permitted status: 400". What will happen if I remove the DNS information for these "subdomains" and add only an A record to the root domain's DNS records?
I'm not entirely sure why this type of "subdomain" is even possible/allowed, DNS-wise. I'm using it just for webserver access, but these domains get their own SPF, mail and DKIM records, just like any root domain. Will these resolve if I add the records to the root domain's DNS records? Love to hear from the experts.