{"id":9370,"date":"2025-11-26T05:32:35","date_gmt":"2025-11-26T05:32:35","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=9370"},"modified":"2026-11-17T03:19:40","modified_gmt":"2026-11-17T03:19:40","slug":"cloudflare-code-to-check-for-inactive-dns-records","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records","title":{"rendered":"Cloudflare Code to Check for Inactive DNS records"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">&lt;#\n  Cloudflare - List DNS records with no queries in the analytics window (no CSV export)\n\n  Usage:\n    .\\InactiveDNSRercordsCloudflare.ps1 -ApiToken \"&lt;token>\"\n    or set $env:CLOUDFLARE_API_TOKEN and run with no arguments.\n\n  Token needs: Zone:Read, DNS:Read, Analytics:Read\n  Note: Cloudflare only retains DNS analytics for a limited period (often ~8 days\n        on non-Enterprise plans), so \"30 days\" is best-effort.\n#>\nparam(\n    [string]$ApiToken = $env:CLOUDFLARE_API_TOKEN,\n    [int]$DaysToQuery = 30,\n    [int]$MaxDaysPerQuery = 6\n)\n\nif (-not $ApiToken) { Write-Error \"No API token. Pass -ApiToken or set `$env:CLOUDFLARE_API_TOKEN.\"; exit 1 }\n\n$Api     = \"https:\/\/api.cloudflare.com\/client\/v4\"\n$Headers = @{ \"Authorization\" = \"Bearer $ApiToken\"; \"Content-Type\" = \"application\/json\" }\n\n# Verify token\ntry {\n    $verify = Invoke-RestMethod \"$Api\/user\/tokens\/verify\" -Headers $Headers\n    if (-not $verify.success) { throw \"Token verification failed\" }\n} catch {\n    Write-Error \"Bad token: $($_.Exception.Message)\"; exit 1\n}\n\n# Fetch all pages of a paginated REST endpoint\nfunction Get-CfPaged([string]$Url, [int]$PerPage) {\n    $page = 1\n    $all  = @()\n    do {\n        $sep  = if ($Url.Contains(\"?\")) { \"&amp;\" } else { \"?\" }\n        $resp = Invoke-RestMethod \"$Url${sep}per_page=$PerPage&amp;page=$page\" -Headers $Headers\n        $all += $resp.result\n        $totalPages = $resp.result_info.total_pages\n        $page++\n    } while ($totalPages -and $page -le $totalPages)\n    return $all\n}\n\ntry {\n    $Zones = @(Get-CfPaged \"$Api\/zones\" 50 | Where-Object { $_ })\n} catch {\n    Write-Error \"Failed to list zones: $($_.Exception.Message)\"; exit 1\n}\nif ($Zones.Count -eq 0) { Write-Error \"No zones visible to this token (needs Zone:Read).\"; exit 1 }\n$ScriptStart = (Get-Date).ToUniversalTime()\n\nforeach ($zone in $Zones) {\n    $ZoneName = $zone.name\n    Write-Host \"`n=== $ZoneName ===`n\" -ForegroundColor Cyan\n\n    # 1. All DNS records\n    try {\n        $DnsRecords = @(Get-CfPaged \"$Api\/zones\/$($zone.id)\/dns_records\" 1000 | Where-Object { $_ })\n    } catch {\n        Write-Warning \"Failed to list DNS records for ${ZoneName}: $($_.Exception.Message)\"; continue\n    }\n\n    # 2. DNS analytics (aggregated counts) in non-overlapping chunks, newest first\n    $HitsByName     = @{}   # \"name\"      -> count\n    $HitsByNameType = @{}   # \"name|TYPE\" -> count\n    $numChunks = [Math]::Ceiling($DaysToQuery \/ $MaxDaysPerQuery)\n    $successfulChunks = 0\n\n    Write-Host \"  Querying DNS analytics for last $DaysToQuery days ($numChunks chunks of up to $MaxDaysPerQuery days)...\" -ForegroundColor Gray\n\n    for ($chunk = 0; $chunk -lt $numChunks; $chunk++) {\n        $endDt   = $ScriptStart.AddDays(-($chunk * $MaxDaysPerQuery))\n        $startDt = $ScriptStart.AddDays(-[Math]::Min(($chunk + 1) * $MaxDaysPerQuery, $DaysToQuery))\n        $chunkStart = $startDt.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")\n        $chunkEnd   = $endDt.ToString(\"yyyy-MM-ddTHH:mm:ssZ\")\n\n        $queryString = @\"\n{\n  viewer {\n    zones(filter: { zoneTag: \"$($zone.id)\" }) {\n      dnsAnalyticsAdaptiveGroups(\n        filter: { datetime_geq: \"$chunkStart\", datetime_lt: \"$chunkEnd\" }\n        limit: 10000\n      ) {\n        count\n        dimensions { queryName queryType }\n      }\n    }\n  }\n}\n\"@\n        $Body = @{ query = $queryString } | ConvertTo-Json -Depth 10\n\n        try {\n            $Analytics = Invoke-RestMethod \"$Api\/graphql\" -Method Post -Headers $Headers -Body $Body\n        } catch {\n            Write-Host \"  Chunk $($chunk + 1) error: $($_.Exception.Message)\" -ForegroundColor Yellow\n            continue\n        }\n\n        if ($Analytics.errors) {\n            $errorMsg = $Analytics.errors[0].message\n            if ($errorMsg -like \"*older than*\" -or $errorMsg -like \"*retention*\") {\n                # Older chunks will fail too - stop going further back\n                Write-Host \"  Chunk $($chunk + 1) ($chunkStart to $chunkEnd): beyond analytics retention, stopping.\" -ForegroundColor DarkGray\n                break\n            }\n            Write-Host \"  Chunk $($chunk + 1) ($chunkStart to $chunkEnd): $errorMsg\" -ForegroundColor Yellow\n            continue\n        }\n\n        $groups = @($Analytics.data.viewer.zones | Select-Object -First 1 | ForEach-Object { $_.dnsAnalyticsAdaptiveGroups })\n        $chunkQueries = [long]0\n        foreach ($g in $groups) {\n            if (-not $g -or -not $g.dimensions.queryName) { continue }\n            $name = $g.dimensions.queryName.TrimEnd('.').ToLower()\n            $type = \"$($g.dimensions.queryType)\".ToUpper()\n            $cnt  = [long]$g.count\n\n            $HitsByName[$name] = [long]$HitsByName[$name] + $cnt\n            $key = \"$name|$type\"\n            $HitsByNameType[$key] = [long]$HitsByNameType[$key] + $cnt\n            $chunkQueries += $cnt\n        }\n\n        Write-Host \"  Chunk $($chunk + 1) ($chunkStart to $chunkEnd): $chunkQueries queries, $($groups.Count) name\/type groups\" -ForegroundColor Gray\n        if ($groups.Count -ge 10000) {\n            Write-Warning \"  Chunk $($chunk + 1) hit the 10,000 group limit - some names may be missing (reduce -MaxDaysPerQuery)\"\n        }\n        $successfulChunks++\n    }\n\n    if ($successfulChunks -gt 0) {\n        $totalQueries = ($HitsByName.Values | Measure-Object -Sum).Sum\n        Write-Host \"  Total: $($HitsByName.Count) unique query names, $totalQueries queries from $successfulChunks\/$numChunks chunks\" -ForegroundColor Gray\n        if ($successfulChunks -lt $numChunks) {\n            Write-Host \"  Note: older data not available - results cover a shorter window than $DaysToQuery days\" -ForegroundColor Yellow\n        }\n    } else {\n        Write-Warning \"Could not retrieve DNS analytics for $ZoneName - skipping (results would all show UNUSED).\"\n        continue\n    }\n\n    # 3. Match records to queries\n    $Results = foreach ($r in $DnsRecords) {\n        # Skip verification-token TXT records\n        if ($r.type -eq \"TXT\" -and $r.content -match \"google-site-verification=|facebook-domain-verification=|ms=ms\\d{7,}\") { continue }\n\n        $recordName = $r.name.TrimEnd('.').ToLower()   # API returns FQDN\n        $recordType = $r.type.ToUpper()\n\n        if ($recordName.StartsWith(\"*.\")) {\n            # Wildcard: count queries for names under it that have no explicit record\n            $suffix = $recordName.Substring(1)   # \".example.com\"\n            $explicit = @{}\n            foreach ($d in $DnsRecords) { $explicit[$d.name.TrimEnd('.').ToLower()] = $true }\n            $q = [long]0\n            foreach ($k in $HitsByName.Keys) {\n                if ($k.EndsWith($suffix) -and -not $explicit.ContainsKey($k)) {\n                    if ($recordType -eq \"CNAME\") { $q += $HitsByName[$k] }\n                    else { $q += [long]$HitsByNameType[\"$k|$recordType\"] }\n                }\n            }\n        } elseif ($recordType -eq \"CNAME\") {\n            # A CNAME answers queries of any type for its name\n            $q = [long]$HitsByName[$recordName]\n        } else {\n            $q = [long]$HitsByNameType[\"$recordName|$recordType\"]\n        }\n\n        [pscustomobject]@{\n            Name      = $r.name\n            Type      = $r.type\n            Content   = $r.content\n            Proxied   = $r.proxied\n            Queries   = $q\n            Status    = if ($q -eq 0) { \"UNUSED\" } else { \"Active\" }\n        }\n    }\n    $Results = @($Results)\n\n    $UnusedRecords = @($Results | Where-Object { $_.Status -eq \"UNUSED\" } | Sort-Object Name, Type)\n    $ActiveCount   = @($Results | Where-Object { $_.Status -eq \"Active\" }).Count\n\n    if ($UnusedRecords.Count -gt 0) {\n        Write-Host \"`nUNUSED\/INACTIVE DNS RECORDS ($($UnusedRecords.Count) records):`n\" -ForegroundColor Red\n        $UnusedRecords | Format-Table Name, Type, Content, Proxied, Queries, Status -AutoSize | Out-String -Width 4096 | Write-Host\n    } else {\n        Write-Host \"`nNo unused\/inactive DNS records found - all records are in use.`n\" -ForegroundColor Green\n    }\n\n    Write-Host \"Summary: $ActiveCount active records, $($UnusedRecords.Count) unused records`n\" -ForegroundColor Cyan\n}\n\nWrite-Host \"FINISHED - checked $($Zones.Count) zone(s).\" -ForegroundColor Green\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9370","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.6.2 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.6.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-11-26T05:32:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-11-17T03:19:40+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#article\",\"name\":\"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com\",\"headline\":\"Cloudflare Code to Check for Inactive DNS records\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2025-11-26T05:32:35+00:00\",\"dateModified\":\"2026-11-17T03:19:40+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#webpage\"},\"articleSection\":\"Research\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#listItem\",\"name\":\"Cloudflare Code to Check for Inactive DNS records\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#listItem\",\"position\":3,\"name\":\"Cloudflare Code to Check for Inactive DNS records\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records\",\"name\":\"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/cloudflare-code-to-check-for-inactive-dns-records#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2025-11-26T05:32:35+00:00\",\"dateModified\":\"2026-11-17T03:19:40+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com","description":"","canonical_url":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#article","name":"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com","headline":"Cloudflare Code to Check for Inactive DNS records","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2025-11-26T05:32:35+00:00","dateModified":"2026-11-17T03:19:40+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#webpage"},"articleSection":"Research"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#listItem","name":"Cloudflare Code to Check for Inactive DNS records"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#listItem","position":3,"name":"Cloudflare Code to Check for Inactive DNS records","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#webpage","url":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records","name":"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2025-11-26T05:32:35+00:00","dateModified":"2026-11-17T03:19:40+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com","og:url":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records","article:published_time":"2025-11-26T05:32:35+00:00","article:modified_time":"2026-11-17T03:19:40+00:00","twitter:card":"summary","twitter:title":"Cloudflare Code to Check for Inactive DNS records | Welcome to Pariswells.com"},"aioseo_meta_data":{"post_id":"9370","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":{"faqs":[],"keyPoints":[],"schemas":[],"titles":[],"descriptions":[],"socialPosts":{"email":{"subject":"","preview":"","content":""},"linkedin":[],"twitter":[],"facebook":[],"instagram":[]}},"created":"2025-12-09 22:55:16","updated":"2026-11-17 03:19:40","primary_term":null,"seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCloudflare Code to Check for Inactive DNS records\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog\/"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Cloudflare Code to Check for Inactive DNS records","link":"https:\/\/pariswells.com\/blog\/research\/cloudflare-code-to-check-for-inactive-dns-records"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=9370"}],"version-history":[{"count":3,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9370\/revisions"}],"predecessor-version":[{"id":10029,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9370\/revisions\/10029"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=9370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=9370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=9370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}