PDNSService
in package
Table of Contents
- $api_key : string
- PowerDNS API Key
- $api_url : string
- PowerDNS API Url
- $default_suffix : string
- $pdns : Powerdns
- __construct() : mixed
- creating PowerDNS client wrapper
- createZone() : void
- deleteZone() : void
- resetPTR() : void
- Reset the PTR to a default value
- resolve() : string
- setPTR() : void
- set a PTR record
- getPTRNameAndZone() : array<string|int, mixed>
Properties
$api_key
PowerDNS API Key
private
string
$api_key
api key
$api_url
PowerDNS API Url
private
string
$api_url
api url
$default_suffix
private
string
$default_suffix
$pdns
private
Powerdns
$pdns
client instance
Methods
__construct()
creating PowerDNS client wrapper
public
__construct() : mixed
Return values
mixed —createZone()
public
createZone(string $zone) : void
Parameters
- $zone : string
Return values
void —deleteZone()
public
deleteZone(string $zone) : void
Parameters
- $zone : string
Return values
void —resetPTR()
Reset the PTR to a default value
public
resetPTR(string $ip) : void
Parameters
- $ip : string
Tags
Return values
void —resolve()
public
resolve(string $ip[, string $recordType = RecordType::A ]) : string
Parameters
- $ip : string
- $recordType : string = RecordType::A
Tags
Return values
string —setPTR()
set a PTR record
public
setPTR(string $ip, string $ptr) : void
Parameters
- $ip : string
- $ptr : string
Tags
Return values
void —getPTRNameAndZone()
private
getPTRNameAndZone(string $ip) : array<string|int, mixed>
Parameters
- $ip : string
Return values
array<string|int, mixed> —[name, zone]