-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7221619
commit 48ac6a8
Showing
6 changed files
with
515 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/vendor | ||
/.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.