PHP Classes

File: examples/mxrecords.php

Recommend this page to a friend!
  Classes of Johnny Mast   Redbox DNS   examples/mxrecords.php   Download  
File: examples/mxrecords.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Redbox DNS
Resolve domains and get other DNS records
Author: By
Last change:
Date: 7 years ago
Size: 267 bytes


Class file image Download
require 'autoload.php';

$resolver = new \Redbox\DNS\Resolver();
$resolver->resolve('', DNS_MX);

$resolver as $record) {
    if (
$record['type'] === 'MX')
$record['type'] . ' ' . $record['pri'] . ' '. $record['target']."\n";