@extends($layout_path) @section('title', $app_setting['name'] . ' | ' . __('DNS Management')) @section('content')

{{ __('Add Your Domain') }}

{{ __('Connect your custom domain to the main hosting in a few steps.') }}

@csrf
@error('domain') {{ $message }} @enderror {{ __('Enter only your root domain, e.g., mywebsite.com') }}
{{ __('Please enter a valid domain.') }}
{{ __('Admin Quick Facts') }}

{{ __('Use these values while configuring registrar, DNS, hosting root and SSL.') }}

{{ __('Server Name') }}
{{ $server->server_name ?? 'Main Hosting' }}
{{ __('Primary Domain') }}
{{ $server->domain ?? 'example.com' }}
{{ __('Name Server 1') }}
{{ $server->ns1 ?? 'ns1.yourhost.com' }}
{{ __('Name Server 2') }}
{{ $server->ns2 ?? 'ns2.yourhost.com' }}
{{ __('Root Path') }}
{{ $server->root_path ?? '/home/username/public_html' }}
{{ __('SSL Enabled') }}
@php $ssl = isset($server->ssl_enabled) ? filter_var($server->ssl_enabled, FILTER_VALIDATE_BOOLEAN) : false; @endphp {{ $ssl ? __('True') : __('False') }}
{{ __('Server Admin Playbook') }}

{{ __('Follow these steps to connect the domain to main hosting cleanly and safely.') }}

  1. {{ __('Step 1 — Confirm Server Profile') }}

    {{ __('Make sure you have these values ready:') }} server_name, domain, ns1, ns2, root_path, ssl_enabled.

    {{ __('Tip: Copy from the “Admin Quick Facts” above.') }}
  2. {{ __('Step 2 — Update Registrar Nameservers') }}

    {{ __('At the domain registrar, set Nameserver 1 & 2 to:') }} {{ $server->ns1 ?? 'ns1.yourhost.com' }} {{ $server->ns2 ?? 'ns2.yourhost.com' }}

    {{ __('Propagation usually completes within 5 minutes to 24 hours.') }}
  3. {{ __('Step 3 — Add Domain in Hosting & Set Root') }}

    {{ __('In your hosting panel (cPanel, Plesk, etc.): add the domain and set Document Root to:') }} {{ $server->root_path ?? '/home/username/public_html' }}

    {{ __('Ensure the web files (public/index.php etc.) are reachable under this path.') }}
  4. {{ __('Step 4 — DNS Zone Check') }}

    {{ __('If you changed nameservers to your hosting, the DNS zone is now managed there. Verify that the root A record and www CNAME/A exist and point to the server. If not, create them as needed.') }}

    {{ __('Optional: Add AAAA record if your server has IPv6.') }}
  5. {{ __('Step 5 — Issue SSL (HTTPS)') }}
    @if ($ssl)

    {{ __('SSL is enabled in admin. Run AutoSSL / Let’s Encrypt from hosting to issue a certificate for') }} {{ $server->domain ?? 'example.com' }} {{ __('and') }} www.

    @else
    {{ __('SSL is currently disabled in admin. Enable it and then issue the certificate from hosting.') }}
    @endif
    {{ __('Force HTTPS in your app/web server once the cert is active.') }}
  6. {{ __('Step 6 — Verify & Go Live') }}
    • {{ __('Check NS & A/CNAME records on whatsmydns.net') }}
    • {{ __('Open http:// and https:// to confirm redirect & SSL padlock') }}
    • {{ __('Clear app cache, CDN, and browser cache if needed') }}
@endsection @push('styles') @endpush @push('scripts') @endpush