Get Health
use solutedns\Dns\Health;
$health = new Health();
$health->get(string, object);
Attributes:
- domainstring
- Zone name
- sessionobject
- The SSH session object [optional]
If SSH has not been configured not all health checks can be performed. These additional health checks will be attempted once an SSH hostname is configured.
Check the Error Codes page for information about returned errors.
$domain = 'example.com';
array() { ["success"] => true }
array() { ["errors"]=> array() { [7002]=> array() { [0] => "ns3.example.com" [1] => "ns4.example.com" } [7001]=> array() { [0] => "ns1.example.com - 154152996" } [7006]=> array() { [0] => "Record 'example1.com IN A 192.168.2.1' in zone 'example.com' is out-of-zone." } } }