Documentation

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

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
throws
ReporterException
Return values
void

resolve()

public resolve(string $ip[, string $recordType = RecordType::A ]) : string
Parameters
$ip : string
$recordType : string = RecordType::A
Tags
throws
ReporterException
Return values
string

setPTR()

set a PTR record

public setPTR(string $ip, string $ptr) : void
Parameters
$ip : string
$ptr : string
Tags
throws
ReporterException
todo

=> enforce check on IP and PTR / improve exception handling

Return values
void

getPTRNameAndZone()

private getPTRNameAndZone(string $ip) : array<string|int, mixed>
Parameters
$ip : string
Return values
array<string|int, mixed>

[name, zone]

Search results