From 9224bc4d4ca9ea999ab5535a2cd554a3303770d0 Mon Sep 17 00:00:00 2001 From: Bruno Timsa Date: Wed, 1 Jun 2022 14:30:58 +0200 Subject: [PATCH] add scanRecords to scan for common DNS records --- src/Endpoints/DNS.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Endpoints/DNS.php b/src/Endpoints/DNS.php index a9f74749..860bb3e7 100644 --- a/src/Endpoints/DNS.php +++ b/src/Endpoints/DNS.php @@ -153,4 +153,11 @@ public function deleteRecord(string $zoneID, string $recordID): bool return false; } + + public function scanRecords(string $zoneID): \stdClass + { + $response = $this->adapter->post('zones/' . $zoneID . '/dns_records/scan'); + $this->body = json_decode($response->getBody()); + return $this->body; + } }