PHPackages                             gurkanbicer/advanced-dns - 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. gurkanbicer/advanced-dns

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

gurkanbicer/advanced-dns
========================

It collects DNS results using dig command.

0.2.3(5y ago)5511PHPPHP &gt;=7.1

Since Aug 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gurkanbicer/advanced-dns)[ Packagist](https://packagist.org/packages/gurkanbicer/advanced-dns)[ RSS](/packages/gurkanbicer-advanced-dns/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Advanced DNS
============

[](#advanced-dns)

It collects DNS results using dig command.

### Supported DNS Query Types

[](#supported-dns-query-types)

- A
- AAAA
- CNAME
- MX
- NS
- SOA
- TXT

### Installation

[](#installation)

```
composer require gurkanbicer/advanced-dns

```

```
require 'vendor/autoload.php';
use \Gurkanbicer\AdvancedDns\AdvancedDns;
```

### Samples

[](#samples)

#### Sample 1:

[](#sample-1)

```
$domain = new AdvancedDns('getdns.sh');
$result = $domain->lookup('NS', '8.8.8.8');
var_dump($result);
```

Output:

```
array(4) {
  ["type"]=>
  string(2) "NS"
  ["status"]=>
  string(7) "NOERROR"
  ["nameserver"]=>
  string(7) "8.8.8.8"
  ["response"]=>
  array(2) {
    ["amit.ns.cloudflare.com"]=>
    array(2) {
      ["ttl"]=>
      int(21599)
      ["data"]=>
      array(1) {
        [0]=>
        string(13) "173.245.59.63"
      }
    }
    ["april.ns.cloudflare.com"]=>
    array(2) {
      ["ttl"]=>
      int(21599)
      ["data"]=>
      array(1) {
        [0]=>
        string(13) "173.245.58.66"
      }
    }
  }
}

```

#### Sample 2:

[](#sample-2)

```
$domain = new AdvancedDns('getdns.sh');
$result = $domain->authorityNameserverLookup();
var_dump($result);
```

Output:

```
array(4) {
  ["type"]=>
  string(8) "DOMAINNS"
  ["response"]=>
  array(2) {
    ["amit.ns.cloudflare.com"]=>
    array(2) {
      ["ttl"]=>
      int(86400)
      ["data"]=>
      array(1) {
        [0]=>
        string(13) "173.245.59.63"
      }
    }
    ["april.ns.cloudflare.com"]=>
    array(2) {
      ["ttl"]=>
      int(86400)
      ["data"]=>
      array(1) {
        [0]=>
        string(13) "173.245.58.66"
      }
    }
  }
  ["status"]=>
  string(7) "NOERROR"
  ["nameserver"]=>
  string(9) "a2.nic.sh"
}

```

### Error Handling

[](#error-handling)

```
// if there is no error
if ($result !== false && $result['status'] == 'NOERROR') {
    var_dump($result);
}
```

If there is no response that your queried host:

```
array(4) {
  ["type"]=>
  string(4) "AAAA"
  ["status"]=>
  string(7) "NOERROR"
  ["nameserver"]=>
  string(7) "8.8.8.8"
  ["response"]=>
  array(0) {
  }
}

```

If somethings goes bad or if has not in the list that your query type, output will be like:

```
bool(false)

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~100 days

Recently: every ~124 days

Total

6

Last Release

2012d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5042349?v=4)[Gürkan Biçer](/maintainers/gurkanbicer)[@gurkanbicer](https://github.com/gurkanbicer)

---

Top Contributors

[![gurkanbicer](https://avatars.githubusercontent.com/u/5042349?v=4)](https://github.com/gurkanbicer "gurkanbicer (14 commits)")[![hrodenburg](https://avatars.githubusercontent.com/u/1081955?v=4)](https://github.com/hrodenburg "hrodenburg (1 commits)")

---

Tags

advanced-dnsdig-commanddnspackagistphpdnsdigdns lookup

### Embed Badge

![Health badge](/badges/gurkanbicer-advanced-dns/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[spatie/dns

Retrieve DNS records

6092.5M20](/packages/spatie-dns)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[illuminate/process

The Illuminate Process package.

44869.2k98](/packages/illuminate-process)

PHPackages © 2026

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