PHPackages                             ipokbr/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ipokbr/dns

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ipokbr/dns
==========

DNS Request and Parser

1.0.0(6y ago)08MITPHPPHP ^7.1

Since Dec 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ipokbr/Dns)[ Packagist](https://packagist.org/packages/ipokbr/dns)[ Docs](https://github.com/ipokbr/dns)[ RSS](/packages/ipokbr-dns/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

DNS Request and Parser Class
============================

[](#dns-request-and-parser-class)

This package contains a class that can perform dns requests, parse answer and return a json document. It can request data directly from Root Servers, and even from authoritative or recursive servers.

```
$dns = new Dns_Request();

$dns->setRequestType("MX");

$ret =  $dns->DnsRequest("gogle.com");
```

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ipokbr\dns
```

Usage
-----

[](#usage)

The class can fetch these record types: `A`, `CNAME`, `NS`, `SOA`, `MX`, `TXT`.

```
$dns = new Dns_request();
$dns->setRequestType("MX");
$dns->DnsRequest("gogle.com");

$dns->setRequestType("CNAME"); //Set the record type

$dns->setServerRequest("8.8.8.8"); //Set server to send the request - Default: none

$dns->unsetRecursive(); //Unset the recursive feature - Default: enable

$dns->setTcp(); //Use tcp protocol (instead of udp) - Default: disable

$dns->setTrace(); //Set Trace feature - Default: disable

```

Contributing
------------

[](#contributing)

Contributions to this project are welcome and will be credited.

Credits
-------

[](#credits)

- [Fernando Bertasso Figaro](https://github.com/ipokbr)

License
-------

[](#license)

The MIT License.

Changelog
---------

[](#changelog)

### 1.0.0 - 2019-11-15

[](#100---2019-11-15)

- initial release

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

2338d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63fe4513a83963d740375a1b770f202208b066ad199437b4ef1c4b4caa6b3ac7?d=identicon)[ipok](/maintainers/ipok)

---

Top Contributors

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

---

Tags

dnsipok

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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