Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CentralNic
Badcow-DNS
Commits
a5602deb
Commit
a5602deb
authored
Dec 18, 2018
by
Samuel Williams
Browse files
Updated README.
parent
faf58330
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a5602deb
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment