AXFR support #102
jeroenvermeulen
started this conversation in
Ideas
Replies: 2 comments
-
It is currently possible using Net_DNS2: composer require pear/net_dns2 use Net_DNS2_Resolver;
$resolver = new Net_DNS2_Resolver(array('nameservers' => ['127.0.0.1']));
$response = $resolver->query('domain.nl', 'AXFR');
$result = [];
/** @var \Net_DNS2_RR $rr */
foreach ($response->answer as $rr) {
$result[] = $rr->asArray();
}
var_dump($result); |
Beta Was this translation helpful? Give feedback.
0 replies
-
@jeroenvermeulen Feel free to PR improvements |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great if Spatie/DNS would support AXFR.
When you are querying one of your own nameservers which allow your IP to do AXFR, it would be great to use Spatie/DNS to the all records in the zone.
Something like
Example with Dig:
Beta Was this translation helpful? Give feedback.
All reactions