Documentation

Record
in package

AbstractYes

Represents a DNS record

Tags
category

LibDNS

author

Chris Wright https://github.com/DaveRandom

Table of Contents

Properties

$class  : int
$name  : DomainName
$type  : int
$typeFactory  : TypeFactory

Methods

getClass()  : int
Get the value of the record class field
getName()  : DomainName
Get the value of the record name field
getType()  : int
Get the value of the record type field
setClass()  : mixed
Set the value of the record class field
setName()  : mixed
Set the value of the record name field

Properties

$class

protected int $class = \LibDNS\Records\ResourceClasses::IN

Methods

getClass()

Get the value of the record class field

public getClass() : int
Return values
int

getType()

Get the value of the record type field

public getType() : int
Return values
int

setClass()

Set the value of the record class field

public setClass(int $class) : mixed
Parameters
$class : int

The new value, can be indicated using the ResourceClasses/ResourceQClasses enums

Tags
throws
RangeException

When the supplied value is outside the valid range 0 - 65535

setName()

Set the value of the record name field

public setName(string|DomainName $name) : mixed
Parameters
$name : string|DomainName
Tags
throws
UnexpectedValueException

When the supplied value is not a valid domain name


        
On this page

Search results