$db = db::get();
db class you can directly call any PDO statement available in PHP. Depending on the namespace your in you might need to call the global PDO class by adding an backslash before the PDO class name itself.
$zones = new Zones();
- Zone name
- domain idint
- Avoid an extra lookup when the domain id is known [optional]
Records in Zone
$validate = new Validate();
- Zone name
- Record type
- Record name
- Record content
- Record prioirity
- Record time to live
Please note this is an preliminary validation function. No zone checks are performed being but not limited to: unique record, zone exists and non-alias targeting checks.
$dnssec= new Dnssec();
All functions which use an SSH connection to the nameserver have an session parameter. This can be used to avoid the function reconnecting to the server every time it’s called. This is typically useful when performing multiple actions which require SSH access.
You can either store the session in an variable and send it along with each function call:
$session = $dnssec->session(); $dnssec->rectify('example.com', $session); $dnssec->rectify('demo.com', $session);
Or store the session in the class itself:
$dnssec->session(); $dnssec->rectify('example.com'); $dnssec->rectify('demo.com');