OhDns is a DNS record lookup library for PHP.

2.0.3 2022-02-03 16:55 UTC

This package is auto-updated.

Last update: 2024-11-29 06:16:31 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