Ability to add/delete dns records from the task.queue

Version 1.531

Feature
Finished

Very raw feature with limited user validation. Use very carefully. Samples, add/delete: echo 'action=dns&do=add&domain=domain.com&type=A&name=mail&value=1.2.3.4&ttl=500' >> /usr/local/directadmin/data/task.queue echo 'action=dns&do=delete&domain=domain.com&type=A&name=mail&value=1.2.3.4' >> /usr/local/directadmin/data/task.queue echo 'action=dns&do=delete&domain=domain.com&type=TXT&name=_acme-challenge&value=*' >> /usr/local/directadmin/data/task.queue Note, that the do=delete does require you pass the "value" as most record types allow duplicate names, thus the value is used to differentiate the records. The ttl can optionally be passed during do=add, but is not required. If dns_ttl=1 is not enabled, the ttl value will have no effect. For do=delete, if value=* then it will delete *all* records of that type, with the given name=. So in the example, it will delete all TXT records from domain.com, that have a left-side name of _acme-challenge. This will not catch any full records, like "_acme-challenge.domain.com." as the tool is quite basic. This method saves needing an API call, and supports all of the clustering pushes. Note the type must be an upper case character, one of: A, NS, MX, CNAME, PTR, TXT, AAAA, SRV, SPF, TLSA, CAA, DS Note: if some features are not enabled, that given type might not get added to the db file, eg: dns_tlsa=1 dns_caa=1 dns_spf=1

Interested to try DirectAdmin? Get a 30-day Free Trial!