Constants

TYPE_NS

TYPE_NS

TYPE_A

TYPE_A

TYPE_AAAA

TYPE_AAAA

TYPE_CNAME

TYPE_CNAME

TYPE_MX

TYPE_MX

TYPE_PTR

TYPE_PTR

TYPE_TXT

TYPE_TXT

TYPE_SRV

TYPE_SRV

TYPE_AXFR

TYPE_AXFR

TYPE_DS

TYPE_DS

TYPE_CAA

TYPE_CAA

Methods

__construct()

__construct() 

Construct DNS template record in '<domain>' zone

getId()

getId() : integer|null

Return id of DNS record.

Returns

integer|null

getType()

getType() : string|null

Return type of DNS record.

Returns

string|null

getHost()

getHost() : string|null

Return host name of DNS record.

Returns

string|null

getValue()

getValue() : string|null

Return value of DNS record.

Returns

string|null

getOption()

getOption() : string|null

Return option of DNS record.

Returns

string|null

getTtl()

getTtl() : integer|null

Return TTL of DNS record.

Returns

integer|null

setType()

setType(string  $type) : \pm_Dns_Record

Set type of DNS record.

Parameters

string $type

Returns

\pm_Dns_Record

setHost()

setHost(string  $host) : \pm_Dns_Record

Set name host of DNS record.

Parameters

string $host

Returns

\pm_Dns_Record

setValue()

setValue(string  $value) : \pm_Dns_Record

Set value of DNS record.

Parameters

string $value

Returns

\pm_Dns_Record

setOption()

setOption(string|null  $option) : \pm_Dns_Record

Set option of DNS record.

Parameters

string|null $option

Returns

\pm_Dns_Record

setTtl()

setTtl(integer|null  $ttl) : \pm_Dns_Record

Set TTL of DNS record.

Parameters

integer|null $ttl

Returns

\pm_Dns_Record

setZone()

setZone(\pm_Dns_Record  $zone) : $this

Set DNS zone of Dns Record.

Parameters

\pm_Dns_Record $zone

Throws

\pm_Exception

Returns

$this

getZone()

getZone() : \pm_Dns_Zone

Return DNS zone of DNS record.

Returns

\pm_Dns_Zone

getById()

getById(\int  $id) : \pm_Dns_Template_Record

Return template of DNS record by ID.

Parameters

\int $id

Throws

\pm_Exception

Returns

\pm_Dns_Template_Record

save()

save() 

Save DNS record.

remove()

remove() 

Remove template of DNS record.