PHPackages                             alyakin/dns-checker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. alyakin/dns-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alyakin/dns-checker
===================

Laravel-friendly DNS lookup wrapper built on NetDNS2 v2

v2.1.2(1mo ago)0132↓50%MITPHPPHP &gt;=8.1CI passing

Since Apr 3Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/2177866/dns-checker)[ Packagist](https://packagist.org/packages/alyakin/dns-checker)[ RSS](/packages/alyakin-dns-checker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (11)Versions (6)Used By (0)

Laravel DNS Checker
===================

[](#laravel-dns-checker)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c1d13b67f7d0f866187919460e23f6c355fc1ec1c9405f7941b1f4dc472f7cb5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c79616b696e2f646e732d636865636b65722e737667)](https://packagist.org/packages/alyakin/dns-checker)[![Total Downloads](https://camo.githubusercontent.com/e39330e932ce6a7968b387e6a96d18b49a8e6dfce89e418e695a951c1134a0cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c79616b696e2f646e732d636865636b65722e737667)](https://packagist.org/packages/alyakin/dns-checker)[![PHP Version](https://camo.githubusercontent.com/94dd65d265fee3780160714cba904cc05be5da3cbc0f1a8ab435e3ed6fd4d3ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616c79616b696e2f646e732d636865636b6572)](https://packagist.org/packages/alyakin/dns-checker)[![Pint](https://github.com/2177866/dns-checker/actions/workflows/pint.yml/badge.svg?branch=main)](https://github.com/2177866/dns-checker/actions/workflows/pint.yml)[![Tests](https://github.com/2177866/dns-checker/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/2177866/dns-checker/actions/workflows/tests.yml)[![Coverage](https://github.com/2177866/dns-checker/actions/workflows/coverage.yml/badge.svg?branch=main)](https://github.com/2177866/dns-checker/actions/workflows/coverage.yml)[![License](https://camo.githubusercontent.com/2f349be865d60b5901904beca72b30b03003a3661fb0c8730ea4afd63dc7624a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c79616b696e2f646e732d636865636b65722e737667)](LICENSE)

A Laravel-friendly DNS lookup wrapper built on [NetDNS2 v2](https://github.com/mikepultz/netdns2) for custom resolvers, system fallback, typed exceptions, caching, and Laravel integration.

Quick Start
-----------

[](#quick-start)

```
composer require alyakin/dns-checker
```

### Laravel

[](#laravel)

```
php artisan vendor:publish --tag=dns-checker-config
```

```
use Alyakin\DnsChecker\Facades\DnsChecker;

$records = DnsChecker::getRecords('example.com', 'A');
```

### Plain PHP

[](#plain-php)

```
use Alyakin\DnsChecker\DnsLookupService;

$dns = new DnsLookupService([
    'servers' => ['8.8.8.8', '1.1.1.1'],
    'timeout' => 2,
    'fallback_to_system' => true,
]);

$records = $dns->getRecords('example.com', 'MX');
```

Compatibility
-------------

[](#compatibility)

ComponentSupported / usedPackage runtimePHP `8.1`–`8.3`CI matrixPHP `8.1`, `8.3`DNS library`mikepultz/netdns2:^2.0`Laravel support`illuminate/support:^9.0 || ^10.0 || ^11.0`Features
--------

[](#features)

- custom DNS servers with optional fallback to the system resolver
- optional typed exceptions for DNS failures
- optional NXDOMAIN logging control
- optional Laravel Cache-backed caching
- facade, fluent API, DI contract and artisan command support

Documentation
-------------

[](#documentation)

- [Usage](docs/usage.md)
- [Configuration](docs/configuration.md)
- [Error Handling](docs/error-handling.md)
- [Caching](docs/caching.md)
- [Laravel Integration](docs/laravel-integration.md)
- [Architecture](docs/architecture.md)
- [Development](docs/development.md)

Development
-----------

[](#development)

See [docs/development.md](docs/development.md).

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md) for release history and migration notes.

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance89

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~87 days

Total

5

Last Release

55d ago

Major Versions

1.0.0 → v2.0.02026-01-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/9eab5787b91f8e98e632f072b3f87a3c5d2f1e4c3a68dbdaaca650e022d0ae61?d=identicon)[2177866](/maintainers/2177866)

---

Top Contributors

[![2177866](https://avatars.githubusercontent.com/u/64738025?v=4)](https://github.com/2177866 "2177866 (16 commits)")

---

Tags

dns-lookupdns-record-checkerlaravel-packagelaravel-service

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/alyakin-dns-checker/health.svg)

```
[![Health](https://phpackages.com/badges/alyakin-dns-checker/health.svg)](https://phpackages.com/packages/alyakin-dns-checker)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
