Fix subdomain DNS messaging for Ladill nameservers and retire pending-setup primaries.
Deploy Ladill Hosting / deploy (push) Successful in 47s
Deploy Ladill Hosting / deploy (push) Successful in 47s
Treat ns_auto domains as managed DNS, publish subdomain A records via PowerDNS without failing the UX when the local DNS registry is missing, and promote real linked domains over pending-setup.local placeholders. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -121,4 +121,17 @@ class Domain extends Model
|
||||
return (string) $this->status === 'verified'
|
||||
&& (string) $this->onboarding_state === self::STATE_ACTIVE;
|
||||
}
|
||||
|
||||
/** True when Ladill should publish zone records (nameserver / managed DNS path). */
|
||||
public function usesManagedDns(): bool
|
||||
{
|
||||
if ((string) $this->dns_mode === 'managed') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return in_array((string) $this->onboarding_mode, [
|
||||
self::MODE_NS_AUTO,
|
||||
self::MODE_RESELLER_AUTO,
|
||||
], true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user