Commit a5602deb authored by Samuel Williams's avatar Samuel Williams
Browse files

Updated README.

parent faf58330
......@@ -166,3 +166,14 @@ ipv6.domain IN AAAA ::1; This is an IPv6 domain.
* `DS`
* `NSEC`
* `RRSIG`
## Parsing BIND Records
BIND Records can be parsed into PHP objects using [Badcow DNS Parser](https://github.com/Badcow/DNS-Parser).
`composer require "badcow/dns-parser"`
```php
$file = file_get_contents('/path/to/example.com.txt');
$zone = Badcow\DNS\Parser\Parser::parse('example.com.', $file); // Returns Badcow\DNS\Zone
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment