@extends('layouts.app') @section('title', 'DNS Record - ' . $dnsRecord->display_name . ' - ' . $site->name) @section('content')

{{ $dnsRecord->record_type }} - {{ $dnsRecord->domain }}

Edit
@csrf @method('DELETE')
@if(session('success'))
{{ session('success') }}
@endif
DNS Record Details
Site
{{ $site->name }}
{{ $site->url }}
Domain
{{ $dnsRecord->domain }}
Record Type
{{ $dnsRecord->record_type }}
Status
{{ $dnsRecord->status_text }}
Monitoring
@if($dnsRecord->is_active) Active @else Inactive @endif
Last Checked
@if($dnsRecord->last_checked_at) {{ $dnsRecord->last_checked_at->format('Y-m-d H:i:s') }}
{{ $dnsRecord->last_checked_at->diffForHumans() }} @else Never @endif
Expected Value
@if($dnsRecord->expected_value) {{ $dnsRecord->expected_value }} @else Not specified (only checking existence) @endif
@if($dnsRecord->actual_value)
Actual Value(s)
@if(is_array($dnsRecord->actual_value))
    @foreach($dnsRecord->actual_value as $value)
  • {{ $value }}
  • @endforeach
@else {{ $dnsRecord->actual_value }} @endif
@endif @if($dnsRecord->error_message)
Error
{{ $dnsRecord->error_message }}
@endif
Created
{{ $dnsRecord->created_at->format('Y-m-d H:i:s') }}
{{ $dnsRecord->created_at->diffForHumans() }}
About {{ $dnsRecord->record_type }} Records
@php $descriptions = [ 'A' => 'A records map a domain name to an IPv4 address. This is the most common type of DNS record.', 'AAAA' => 'AAAA records map a domain name to an IPv6 address, the newer version of IP addressing.', 'CNAME' => 'CNAME records create an alias from one domain name to another. They\'re often used for subdomains.', 'MX' => 'MX records specify the mail servers responsible for accepting email on behalf of your domain.', 'TXT' => 'TXT records store text information. They\'re commonly used for email authentication (SPF, DKIM, DMARC).', 'NS' => 'NS records identify the authoritative name servers for your domain.', 'SOA' => 'SOA records contain administrative information about the domain, including the primary name server.', 'PTR' => 'PTR records provide reverse DNS lookups, mapping IP addresses back to domain names.', 'SRV' => 'SRV records specify the location of services, including the hostname and port number.', ]; @endphp

{{ $descriptions[$dnsRecord->record_type] ?? 'DNS record type for monitoring.' }}

Current Status
{{ $dnsRecord->status_text }}
@if($dnsRecord->is_valid === true)

DNS record is valid

@elseif($dnsRecord->is_valid === false)

DNS record is invalid

@else

Not yet checked

@endif
Monitoring Info

Check Frequency: Hourly

Alerts: Sent when DNS becomes invalid

Validation: @if($dnsRecord->expected_value) Matches expected value @else Record exists @endif

@endsection