Hi guys,
Firstly - I do not know if this is the right place, but I have searched many forums for quick way of listing all domains on DA servers - no go.
As I have found one and that is not included in features nor in manual - I'll post it here.
All you have to do is turn to "CMD_API_DNS_ADMIN" link here: http://www.directadmin.com/features.php?id=532 If you pass no variables with POST or GET - You get back an array list of domains. Which in my case was needed.
Code in my case (server request makes admin connection):
To any admins - please move this post to right Forum if needed and also notify DA staff to update feature listing if possible - because many people seem to search same thing over the years but have not found it due to poor manual...
Br,
KT.
Firstly - I do not know if this is the right place, but I have searched many forums for quick way of listing all domains on DA servers - no go.
As I have found one and that is not included in features nor in manual - I'll post it here.
All you have to do is turn to "CMD_API_DNS_ADMIN" link here: http://www.directadmin.com/features.php?id=532 If you pass no variables with POST or GET - You get back an array list of domains. Which in my case was needed.
Code in my case (server request makes admin connection):
Code:
public function get_domains()
{
$this->server_request('/CMD_API_DNS_ADMIN', null, $return);
return (!empty($return['list']) ? $return['list'] : array()) ;
}
To any admins - please move this post to right Forum if needed and also notify DA staff to update feature listing if possible - because many people seem to search same thing over the years but have not found it due to poor manual...
Br,
KT.