Rectify Zone

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->rectify(string, object);

Attributes:

domainstring
Zone name
sessionobject
The SSH session object [optional]
$domain = 'example.com';
Success:
true

Error:
array() {
  ["error"]
}

Get Keys

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->get(string, object);

Attributes:

domainstring
Zone name
sessionobject
The SSH session object [optional]
$domain = 'example.com';
Success:
array {
  'keys' => array {
    [14]=> array {
      'id' => '14'
      'flag' => 'CSK'
      'algorithm' => '13'
      'key_tag' => '22214'
      'public_key' => 'mSJe9k8Q='
      'active' => '1'
    }
  }
  'ds' => array {
    [0]=> array {
      'key_tag' => '22214'
      'algorithm' => '13'
      'digest_type' => '1'
      'digest' => '3d833c48'
    }
  }
  'nsec' => 'NSEC3'
}

Error:
array() {
  ["error"]
}

Secure Zone

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->secure(string, object);

Attributes:

domainstring
Zone name
sessionobject
The SSH session object [optional]
$domain = 'example.com';
Success:
array {
  'keys' => array {
    [14]=> array {
      'id' => '14'
      'flag' => 'CSK'
      'algorithm' => '13'
      'key_tag' => '22214'
      'public_key' => 'mSJe9k8Q='
      'active' => '1'
    }
  }
  'ds' => array {
    [0]=> array {
      'key_tag' => '22214'
      'algorithm' => '13'
      'digest_type' => '1'
      'digest' => '3d833c48'
    }
  }
  'nsec' => 'NSEC3'
}

Error:
array() {
  ["error"]
}

Unsecure Zone

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->unsecure(string, object);

Attributes:

domainstring
Zone name
sessionobject
The SSH session object [optional]
$domain = 'example.com';
Success:
true

Error:
array() {
  ["error"]
}

Set NSEC3

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->nsec3(string, object);

Attributes:

domainstring
Zone name
sessionobject
The SSH session object [optional]
$domain = 'example.com';
Success:
true

Error:
array() {
  ["error"]
}

Remove NSEC3

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->nsec(string, object);

Attributes:

domainstring
Zone name
sessionobject
The SSH session object [optional]
$domain = 'example.com';
Success:
true

Error:
array() {
  ["error"]
}

Add Zone Key

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->add_key(array, object);

Attributes:

keyarray
Key information

domainstring
Zone name
flagstring
Key type KSK ZSK
bitsint
Key bits
algorithmstring
Key algorithm rsasha1 rsasha256 rsasha512 gost ecdsa256 ecdsa384
sessionobject
The SSH session object [optional]
array(
  'domain' => 'example.com',
  'flag' => 'KSK',
  'bits' => 384,
  'algorithm' => 'ecdsa384',
);
Success:
true

Error:
array() {
  ["error"]
}

Activate Zone Key

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->activate_key(array, object);

Attributes:

keyarray
Key information

domainstring
Zone name
idint
ID of the DNSsec key
sessionobject
The SSH session object [optional]
array(
  'domain' => 'example.com',
  'id' => 22,
);
Success:
true

Error:
array() {
  ["error"]
}

Deactivate Zone Key

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->deactivate_key(array, object);

Attributes:

keyarray
Key information

domainstring
Zone name
idint
ID of the DNSsec key
sessionobject
The SSH session object [optional]
array(
  'domain' => 'example.com',
  'id' => 22,
);
Success:
true

Error:
array() {
  ["error"]
}

Delete Zone Key

use solutedns\Dns\Dnssec;
$dnssec = new Dnssec();
$dnssec->delete_key(array, object);

Attributes:

keyarray
Key information

domainstring
Zone name
idint
ID of the DNSsec key
sessionobject
The SSH session object [optional]
array(
  'domain' => 'example.com',
  'id' => 22,
);
Success:
true

Error:
array() {
  ["error"]
}