-
Hi and thanks for a great integration tool to powerdns. I hope you can help im a bit stuck regarding deleting a mx record. Hopefully you can help. Description of the bug: How to reproduce the bug:
Code I use to delete the MX record is as follow: require __DIR__.'/autoload.php';
require __DIR__.'/vendor/exonet/powerdns-php/examples/CliLogger.php';
use Exonet\Powerdns\Powerdns;
use Exonet\Powerdns\RecordType;
use Exonet\Powerdns\Resources\ResourceRecord;
// Initialize the Powerdns client.
$powerdns = new Powerdns('nameserver', '**************');
$zone = $powerdns->zone('test.com');
$result = $zone->find('@', RecordType::MX)->delete();
print_r($result); The return code from the code is The expected behavior: Additional comment |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
At this moment, it isn't possible to do a |
Beta Was this translation helpful? Give feedback.
-
Hi trizz, Thanks for the fast response! // I can confirm it solved the issue Thanks a lot! |
Beta Was this translation helpful? Give feedback.
At this moment, it isn't possible to do a
find('@')
, you need to use$zone->find('test.com', RecordType::MX)->delete();
. You could also use$zone->get(RecordType::MX)
to get all MX records.