class RecordMatchingService (View source)

Methods

__construct(DomainRepositoryInterface $domainRepository, RecordRepositoryInterface $recordRepository)

No description

array
getMatchingForwardRecords(string $domain, int $networkAddress, int $hostCount)

Get A records from the forward zone that match the given IP range

array
getMatchingIPv6ForwardRecords(string $domain, string $networkPrefix)

Get AAAA records from the forward zone that match the given IPv6 /64 network

Details

__construct(DomainRepositoryInterface $domainRepository, RecordRepositoryInterface $recordRepository)

No description

Parameters

DomainRepositoryInterface $domainRepository
RecordRepositoryInterface $recordRepository

array getMatchingForwardRecords(string $domain, int $networkAddress, int $hostCount)

Get A records from the forward zone that match the given IP range

Parameters

string $domain

The forward zone domain name

int $networkAddress

The network address as a long integer

int $hostCount

The number of hosts in the network

Return Value

array

Array of matching A records with their hostnames and IPs

array getMatchingIPv6ForwardRecords(string $domain, string $networkPrefix)

Get AAAA records from the forward zone that match the given IPv6 /64 network

Parameters

string $domain

The forward zone domain name

string $networkPrefix

The IPv6 /64 prefix (e.g., "2001:db8:1:1")

Return Value

array

Array of matching AAAA records