OhDns is a DNS record lookup library for PHP.

Maintainers

Package info

github.com/rogerthomas84/ohdns

pkg:composer/rogerthomas84/ohdns

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

2.0.3 2022-02-03 16:55 UTC

This package is auto-updated.

Last update: 2026-03-01 00:37:59 UTC


README

Introduction...

OhDns is a DNS record lookup library for PHP.

Usage...

See test.php for examples of retrieving DNS records by type.

Additionally, this library provides a more advanced email validation by verifying the MX records associated to the domain actually exist.

<?php
$valid = \OhDns\Validators\EmailAddressValidator::isValid(
    'joe@example.com'
);
if ($valid) {
    echo ' YES: joe@example.com is a valid email address.';
} else {
    echo '  NO: joe@example.com is NOT a valid email address.';
}

Composer...

composer require rogerthomas84/ohdns