If there is a license error on your directadmin server or if the license id needs to be changed, if you execute the following commands after making sure that the license is active on your IP address, your system will automatically perform the process.
/usr/local/directadmin/scripts/getLicense.sh auto
service directadmin restart