DynamicDnsUpdateService
class DynamicDnsUpdateService (View source)
Runs a DDNS update: validates and authenticates it, picks the owning zone and syncs the A/AAAA records.
Methods
__construct(DynamicDnsValidationService $validationService, DynamicDnsAuthenticationService $authService, DynamicDnsRepositoryInterface $repository, AuditLoggerInterface|null $auditService = null, string $clientIp = '', Closure|null $requiresApproval = null, ZoneCacheFlusherInterface|null $zoneCacheFlusher = null)
No description
string
array
applyForUser(User $user, string $username, HostnameValue $hostname, IpAddressList $ipList, bool $dualstackUpdate, array|null $allowedZoneIds = null, bool $mayRemoveRecords = true)
Apply an update for a user that was already authenticated by the caller (e.g. via API key).
Details
__construct(DynamicDnsValidationService $validationService, DynamicDnsAuthenticationService $authService, DynamicDnsRepositoryInterface $repository, AuditLoggerInterface|null $auditService = null, string $clientIp = '', Closure|null $requiresApproval = null, ZoneCacheFlusherInterface|null $zoneCacheFlusher = null)
No description
string
processUpdate(DynamicDnsRequest $request)
No description
array
applyForUser(User $user, string $username, HostnameValue $hostname, IpAddressList $ipList, bool $dualstackUpdate, array|null $allowedZoneIds = null, bool $mayRemoveRecords = true)
Apply an update for a user that was already authenticated by the caller (e.g. via API key).
The shared zone-matching and audit-logging logic lives here so any front end can reuse it.