From d045d2793e48f5b52fc1eea6599ee133d2af0685 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Sat, 8 Jun 2024 10:36:36 +0900 Subject: [PATCH] fix pdns api clients (final!) --- src/main/kotlin/space/mori/dnsapi/PowerDNSAPIClient.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/space/mori/dnsapi/PowerDNSAPIClient.kt b/src/main/kotlin/space/mori/dnsapi/PowerDNSAPIClient.kt index cec5d2d..d8e8365 100644 --- a/src/main/kotlin/space/mori/dnsapi/PowerDNSAPIClient.kt +++ b/src/main/kotlin/space/mori/dnsapi/PowerDNSAPIClient.kt @@ -76,7 +76,7 @@ class PowerDNSAPIClient() { @Throws(PowerDNSAPIException::class) fun createRecord(zoneName: String, recordName: String, recordType: String, recordContent: String, ttl: Int = 300, priority: Int = 0): Response { val rrset = mapOf( - "name" to "$recordName.$zoneName.", + "name" to recordName, "type" to recordType, "ttl" to ttl, "changetype" to "REPLACE", @@ -109,7 +109,7 @@ class PowerDNSAPIClient() { @Throws(PowerDNSAPIException::class) fun updateRecord(zoneName: String, recordName: String, recordType: String, recordContent: String, ttl: Int = 300, priority: Int = 0): Response { val rrset = mapOf( - "name" to "$recordName.$zoneName.", + "name" to recordName, "type" to recordType, "ttl" to ttl, "changetype" to "REPLACE", @@ -142,7 +142,7 @@ class PowerDNSAPIClient() { @Throws(PowerDNSAPIException::class) fun deleteRecord(zoneName: String, recordName: String, recordType: String): Response { val rrset = mapOf( - "name" to "$recordName.$zoneName.", + "name" to recordName, "type" to recordType, "changetype" to "DELETE", "records" to listOf>() // 빈 레코드 리스트