Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymast committed Apr 11, 2016
1 parent 04acbbe commit 67a5fc6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
9 changes: 7 additions & 2 deletions README.md
Expand Up @@ -3,8 +3,13 @@
[![Code Coverage](https://scrutinizer-ci.com/g/johnnymast/redbox-dns/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/johnnymast/redbox-dns/?branch=master)
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Contact author)](https://twitter.com/intent/tweet?text=@mastjohnny)

# redbox-dns
NOT READY
# redbox-dns (NOT READY)

```PHP


```


[LICENSE](LICENSE.md)

2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -3,7 +3,7 @@


$resolver = new \Redbox\DNS\Resolver();
$resolver->resolve('php.net', DNS_A);
$resolver->resolve('php.net', DNS_ALL);


print_r($resolver);
Expand Down
11 changes: 2 additions & 9 deletions src/Resolver.php
Expand Up @@ -8,9 +8,7 @@ class Resolver extends Reflectable
*/
public function __construct()
{
$this->ADITIONAL = [];
$this->DNS = [];
$this->NS = [];
}

/**
Expand All @@ -25,18 +23,13 @@ public function resolve($domain = '', $type = DNS_ANY)

$this->clear();

$result = dns_get_record($domain, $type, $authns, $addtl);
$result = dns_get_record($domain, $type);

if (empty($result) || $result === false) {
return false;
}

list(
$this->DNS,
$this->NS,
$this->ADITIONAL
) = [$result, $authns, $addtl];

$this->DNS = $result;
return true;
}

Expand Down

0 comments on commit 67a5fc6

Please sign in to comment.