Search by

yu-laravel / dns-check

yuriyakishin

Laravel Livewire tool that checks a domain's DNS and mail records: nameservers, MX, SPF, DKIM, DMARC, CAA and expiry.

v1.0.1 2026-11-19 11:17 UTC

This package is auto-updated.

Last update: 2026-11-19 11:17:43 UTC


README

License: MIT PHP Laravel Livewire Live Demo

A Livewire tool for Laravel that checks a domain's DNS and mail records. The visitor enters a domain or URL. The tool reads the records and the registration data (over RDAP), then explains in plain words what works and what to fix.

DNS Check report

🔗 Live example: yu.net.ua/en/tools/dns-check

What it checks

8 checks in two groups. The result is a score out of 100 and a verdict.

Group Checks
The domain Expiry date, site opens with and without www, more than one name server, CAA limits who can issue SSL
The email MX records, SPF, DMARC, DKIM signature

DKIM keys have no fixed name, so the tool tries the selectors used by popular mail services (Google, Microsoft 365, SendGrid, Zoho, Resend and others). You can change that list in the config.

Requirements

  • PHP ^8.4
  • Laravel ^13.0
  • Livewire ^4.0

Installation

composer require yu-laravel/dns-check

This also installs yu-laravel/web-tools-core. Both service providers are discovered automatically.

Usage

Put the component on a page whose layout includes @livewireStyles and @livewireScripts:

<livewire:dns-check />

Import the styles into your CSS build:

@import "../../vendor/yu-laravel/web-tools-core/resources/css/web-tools-core.css";
@import "../../vendor/yu-laravel/dns-check/resources/css/dns-check.css";

To match your site's colours and fonts, override the --wt-* variables (see Web Tools Core).

Configuration

Env variable Default Description
DNS_CHECK_ENABLED true Turn the tool off without uninstalling it.
DNS_CHECK_PER_HOUR 10 Checks per visitor IP per hour.

A report is cached for 5 minutes, because DNS changes take a few minutes to spread. config/dns-check.php also holds the DKIM selectors to try and the IANA RDAP bootstrap URL.

Events

After every check the tool dispatches Yu\WebToolsCore\Events\ToolCheckedEvent with tool = "dns-check" (see Listening to checks).

Languages

13 translations: cs, de, en, es, fr, it, ja, nl, pl, pt, tr, uk and zh. The language is taken from the visitor's browser, with your app locale as the fallback.

Limitations

Records are read with PHP's dns_get_record() through your server's resolver. A resolver that drops large or TCP answers can return some records empty.

Author

Yuriy Akishin:

License

MIT. See LICENSE.