PHPackages                             eugenesh/dns-records - 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. eugenesh/dns-records

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

eugenesh/dns-records
====================

A simple PHP library that allows you to get all DNS records for a specified domain name.

01PHP

Since Jun 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Amelgal/dns-records)[ Packagist](https://packagist.org/packages/eugenesh/dns-records)[ RSS](/packages/eugenesh-dns-records/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DNS Records
===========

[](#dns-records)

A simple PHP library that allows you to get all DNS records for a specified domain name.

Usage Guide
-----------

[](#usage-guide)

### Installation Guide

[](#installation-guide)

To install with Composer:

```
composer require eugenesh/dns-records

```

### Usage Guide

[](#usage-guide-1)

Below is an example script to get all DNS records for the domain "gmail.com"

```
// A simple example
require("vendor/autoload.php");

use DnsRecords\RecordHandler;

$recordHandler = new RecordHandler();

// Domain Name
$domainName = "gmail.com";

// Record Type
$recordsType = "ALL";

// Get all DNS records
$records = $recordHandler->getDnsRecords($domainName, $recordsType);

//Print Result
echo '';
var_dump( $records );
echo '';
```

As a result, you should get something like this:

```
array (size=16)
  0 =>
    array (size=5)
      'host' => string 'gmail.com' (length=9)
      'class' => string 'IN' (length=2)
      'ttl' => int 81
      'type' => string 'A' (length=1)
      'ip' => string '142.250.181.229' (length=15)
  1 =>
    array (size=5)
      'host' => string 'gmail.com' (length=9)
      'class' => string 'IN' (length=2)
      'ttl' => int 6685
      'type' => string 'NS' (length=2)
      'target' => string 'ns1.google.com' (length=14)
  2 =>
    array (size=5)
      'host' => string 'gmail.com' (length=9)
      'class' => string 'IN' (length=2)
      'ttl' => int 6685
      'type' => string 'NS' (length=2)
      'target' => string 'ns4.google.com' (length=14)
  3 =>
    array (size=5)
      'host' => string 'gmail.com' (length=9)
      'class' => string 'IN' (length=2)
      'ttl' => int 6685
      'type' => string 'NS' (length=2)
      'target' => string 'ns2.google.com' (length=14)
  ....
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/14ebd22ca485697b60be98c5bcf34fa79c5d2788152a3bb16ca14359c361fb7f?d=identicon)[Amelgal](/maintainers/Amelgal)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/eugenesh-dns-records/health.svg)

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

###  Alternatives

[yiiext/nested-set-behavior

AR models behavior that allows to work with nested sets tree.

158122.0k1](/packages/yiiext-nested-set-behavior)

PHPackages © 2026

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