Rectify Zone
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
Set NSEC3
Remove NSEC3
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
rsasha1-nsec3-sha1
rsasha256
rsasha512
ecdsa256
ecdsa384
ed25519
ed448
- sessionobject
- The SSH session object [optional]
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]
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]
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]