DNSdiag

Free DNS Score Widget

Show your DNS health score on any website. Lightweight, zero dependencies, cached for performance.

How it works: The widget reads your domain's cached DNS score from our API. It never triggers a live DNS check โ€” the first score is generated when someone analyzes your domain on dnsdiag.net. The widget caches results client-side for 4 hours.

Choose a Style

A 92
Badge
Compact pill badge
AScore
Card
Detailed score card
DNS Health: 92/100
Banner
Horizontal info bar
DNSA 92
Shield
Badge-style shield

Customize

Live Preview


Why Use Our Widget?

โšก Zero Performance Impact

Async loading, client-side caching. Doesn't block your page render or trigger live DNS checks.

๐ŸŽจ 4 Beautiful Styles

Badge, card, banner, and shield. Auto dark/light theme detection. Fits any design.

๐Ÿ”— SEO Friendly

Links to your detailed DNS report on dnsdiag.net. Shows visitors you care about DNS health.

๐Ÿ“ฆ No Dependencies

Pure vanilla JS, 4KB gzipped. No jQuery, no React, no tracking. Just one script tag.

๐ŸŒ Multi-Language

Auto-detects visitor language. Supports English, Turkish, German, French and Russian out of the box.

๐Ÿ”„ Auto-Updating

Score refreshes automatically every 4 hours. No manual updates needed โ€” always shows the latest DNS health status.

Quick Start

1. Add the script tag

Place this anywhere in your HTML (before </body> recommended):

<script src="https://dnsdiag.net/widget.js" async defer></script>

2. Add the widget container

Place this where you want the widget to appear:

<!-- Auto-detects current domain -->
<div data-dnsdiag-widget></div>

<!-- Or specify a domain -->
<div data-dnsdiag-widget="example.com"></div>

3. Customize with attributes

<div data-dnsdiag-widget="example.com"
     data-style="card"
     data-theme="dark"
     data-size="normal">
</div>

Attributes Reference

Attribute Values Default
data-dnsdiag-widgetDomain or empty (auto-detect)auto
data-stylebadge, card, banner, shieldbadge
data-themeauto, light, darkauto
data-sizenormal, smallnormal

API Access

DNSdiag provides a free public API for programmatic access:

Agent discovery is available via /.well-known/ endpoints for AI tool integration.

Analyze Your Domain โ†’