Skip to content

Commit

Permalink
Copied from local repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanbicer committed Aug 14, 2019
1 parent 7221619 commit 48ac6a8
Show file tree
Hide file tree
Showing 6 changed files with 515 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/.idea
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,34 @@
# advanced-dns
# Advanced DNS
It collects DNS results using dig command.

### Supported DNS Query Types

- A
- AAAA
- CNAME
- MX
- NS
- SOA
- TXT

### Samples

If dns server don't respond or query not successful, false will return. If query successful, results will return as an array.

```php
$domain = new AdvancedDns('getdns.sh');
$result = $domain->lookup('NS', '8.8.8.8');
var_dump($result);
```

```php
$domain = new AdvancedDns('getdns.sh');
$result = $domain->lookup('A', '8.8.4.4');
var_dump($result);
```

```php
$domain = new AdvancedDns('getdns.sh');
$result = $domain->authorityNameserverLookup();
var_dump($result);
```
23 changes: 23 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "gurkanbicer/advanced-dns",
"description": "It collects DNS results using dig command.",
"keywords": ["dns", "dns lookup", "dig"],
"authors": [
{
"name": "Gürkan Biçer",
"email": "[email protected]"
}
],
"type": "project",
"require": {
"php": ">=7.1",
"symfony/process": "^4.3"
},
"require-dev": {
},
"autoload": {
"psr-4": {
"Gurkanbicer\\AdvancedDns\\": "src/"
}
}
}
69 changes: 69 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48ac6a8

Please sign in to comment.