Overview Subdomain
@if (!$dnsConfigured)

DNS Not Configured

Subdomain management is unavailable. The administrator needs to set the TECHNITIUM_DNS_URL and TECHNITIUM_DNS_TOKEN environment variables.

@else

Subdomain Management

Create and manage subdomains for dns.virtnet.host

Subdomain Configuration Notice

Only A and AAAA records are created. For any subdomain created, its child wildcard (*) subdomain is also automatically created. One subdomain per public IP address can be created. Under no circumstances will PTR, MX, NS, or other record types be added. These restrictions are in place to minimize abuse of the subdomain system.

Create Subdomain

Create Subdomain
@if(count($this->availableIpsForSubdomain) === 0)

All available public IP addresses already have subdomains assigned.

@else

You can create {{ count($this->availableIpsForSubdomain) }} more subdomain(s).

@endif

Your Subdomains

@if(count($serverZones) === 0)

No subdomains created yet.

@else
@foreach($serverZones as $zone)

{{ $zone['subdomain'] }}.dns.virtnet.host

IP: {{ $zone['ipAddress'] }}

@php $hasWildcard = false; $wildcardType = null; if (isset($zone['records']) && is_array($zone['records'])) { foreach ($zone['records'] as $record) { if (($record['name'] ?? '') === '*') { $hasWildcard = true; $wildcardType = $record['type'] ?? 'A'; break; } } } @endphp @if($hasWildcard)

Wildcard: *.{{ $zone['subdomain'] }}.dns.virtnet.host ({{ $wildcardType }})

@endif
Delete Manage Records
@endforeach
@endif
@if($showCreateModal)

Create New Subdomain

Will create: {{ $newSubdomain ? $newSubdomain . '.dns.virtnet.host' : 'subdomain.dns.virtnet.host' }}

@error('newSubdomain')

{{ $message }}

@enderror
@error('selectedIpId')

{{ $message }}

@enderror
Cancel Create Creating...
@endif @if($showRecordModal && $selectedZone)

DNS Records for {{ $selectedZone }}.dns.virtnet.host

Add DNS Record

@error('recordName')

{{ $message }}

@enderror
@error('recordRdata')

{{ $message }}

@enderror
@error('recordTtl')

{{ $message }}

@enderror
Add Record Adding...

Existing Records

@if(empty($zoneRecords) || count($zoneRecords) === 0)

No DNS records found.

@else
@foreach($zoneRecords as $index => $record) @endforeach
Name Type IP Address TTL Actions
{{ $record['name'] ?? '@' }} {{ $record['type'] ?? 'A' }} {{ $record['rdata'] ?? $record['ipAddress'] ?? '' }} {{ $record['ttl'] ?? 3600 }}
@endif
@endif @if($showDeleteModal && $subdomainToDelete)

Delete Subdomain

Are you sure you want to delete the following subdomain?

{{ $subdomainToDeleteFull }}

This action cannot be undone. All DNS records associated with this subdomain will be deleted.

Cancel Delete Deleting...
@endif @endif {{-- dnsConfigured --}}