Porkbun were unable to create the DNS record #310

Closed
opened 2025-11-20 04:22:34 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @trexxeon on GitHub (Sep 10, 2023).

ERROR","message":"Create error: We were unable to create the DNS record.

  1. Is this urgent: Yes

  2. DNS provider(s) you use: Porkbun

  3. Program version: 2.5.0

    Running version latest built on 2023-08-08T07:11:52.047Z (commit 7fac178)

  4. What are you using to run the container: docker-compose

  5. Extra information (optional)

file
-r-------- 1 trexx trexx 349 10 sep 20.22 config.json
directory
drwxr-xr-x 2 trexx trexx 4096 10 sep 20.43 ddns-updater

Logs:

2023-09-10T20:50:30+02:00 INFO Updating record [domain: domainremovedforprivacy.com | host:  auth | provider: porkbun | ip: ipv4] to use 83.x.x.x
2023-09-10T20:50:30+02:00 DEBUG POST https://porkbun.com/api/json/v3/dns/retrieveByNameType/domainremovedforprivacy.com/A/%20auth | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Content-Type: application/json; Accept: application/json | body: {"secretapikey":"secretapikey","apikey":"secretapikey"}
2023-09-10T20:50:30+02:00 DEBUG 200 OK | headers: X-Content-Type-Options: nosniff; Content-Type: application/json; Set-Cookie: ; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/,cleanupR6AY; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/; SameSite=None; Secure,; path=/; secure; HttpOnly; SameSite=Lax; Server: openresty; Pragma: no-cache; Strict-Transport-Security: max-age=63072000; includeSubDomains; preload; Date: Sun, 10 Sep 2023 18:50:30 GMT; Content-Language: en-US, en; Cache-Control: no-store, no-cache, must-revalidate; X-Xss-Protection: 1; mode=block; Referrer-Policy: origin; Expires: Thu, 19 Nov 1981 08:52:00 GMT; X-Frame-Options: sameorigin | body: {"status":"SUCCESS","cloudflare":"enabled","records":[]}
2023-09-10T20:50:30+02:00 DEBUG POST https://porkbun.com/api/json/v3/dns/create/domainremovedforprivacy.com | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Content-Type: application/json; Accept: application/json | body: {"secretapikey":"secretapikey","apikey":"secretapikey","content":"83.x.x.x","name":" auth","type":"A","ttl":"0"}
2023-09-10T20:50:31+02:00 DEBUG 400 Bad Request | headers: Set-Cookie: cleanup; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/,; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/; SameSite=None; Secure,BUNSESSION2=; path=/; secure; HttpOnly; SameSite=Lax; Expires: Thu, 19 Nov 1981 08:52:00 GMT; Cache-Control: no-store, no-cache, must-revalidate; Pragma: no-cache; Date: Sun, 10 Sep 2023 18:50:31 GMT; Content-Type: application/json; Server: openresty; Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | body: {"status":"ERROR","message":"Create error: We were unable to create the DNS record."}
2023-09-10T20:50:31+02:00 ERROR HTTP status is not valid: 400: {"status":"ERROR","message":"Create error: We were unable to create the DNS record.

Configuration file (remove your credentials!):

{
  "settings": [
    {
      "provider": "porkbun",
      "domain": "domain.com",
      "host": "@,  auth",
      "api_key": "pk1_",
      "secret_api_key": "sk1_",
      "ip_version": "ipv4"
    }
  ]
}

Host OS:
Debian 11

Originally created by @trexxeon on GitHub (Sep 10, 2023). ERROR","message":"Create error: We were unable to create the DNS record. 1. Is this urgent: Yes 2. DNS provider(s) you use: Porkbun 3. Program version: 2.5.0 <!-- See the line at the top of your logs --> `Running version latest built on 2023-08-08T07:11:52.047Z (commit 7fac178)` 4. What are you using to run the container: docker-compose 5. Extra information (optional) file ```-r-------- 1 trexx trexx 349 10 sep 20.22 config.json``` directory ```drwxr-xr-x 2 trexx trexx 4096 10 sep 20.43 ddns-updater``` Logs: ``` 2023-09-10T20:50:30+02:00 INFO Updating record [domain: domainremovedforprivacy.com | host: auth | provider: porkbun | ip: ipv4] to use 83.x.x.x 2023-09-10T20:50:30+02:00 DEBUG POST https://porkbun.com/api/json/v3/dns/retrieveByNameType/domainremovedforprivacy.com/A/%20auth | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Content-Type: application/json; Accept: application/json | body: {"secretapikey":"secretapikey","apikey":"secretapikey"} 2023-09-10T20:50:30+02:00 DEBUG 200 OK | headers: X-Content-Type-Options: nosniff; Content-Type: application/json; Set-Cookie: ; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/,cleanupR6AY; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/; SameSite=None; Secure,; path=/; secure; HttpOnly; SameSite=Lax; Server: openresty; Pragma: no-cache; Strict-Transport-Security: max-age=63072000; includeSubDomains; preload; Date: Sun, 10 Sep 2023 18:50:30 GMT; Content-Language: en-US, en; Cache-Control: no-store, no-cache, must-revalidate; X-Xss-Protection: 1; mode=block; Referrer-Policy: origin; Expires: Thu, 19 Nov 1981 08:52:00 GMT; X-Frame-Options: sameorigin | body: {"status":"SUCCESS","cloudflare":"enabled","records":[]} 2023-09-10T20:50:30+02:00 DEBUG POST https://porkbun.com/api/json/v3/dns/create/domainremovedforprivacy.com | headers: User-Agent: DDNS-Updater quentin.mcgaw@gmail.com; Content-Type: application/json; Accept: application/json | body: {"secretapikey":"secretapikey","apikey":"secretapikey","content":"83.x.x.x","name":" auth","type":"A","ttl":"0"} 2023-09-10T20:50:31+02:00 DEBUG 400 Bad Request | headers: Set-Cookie: cleanup; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/,; Expires=Sun, 17 Sep 2023 18:50:30 GMT; Path=/; SameSite=None; Secure,BUNSESSION2=; path=/; secure; HttpOnly; SameSite=Lax; Expires: Thu, 19 Nov 1981 08:52:00 GMT; Cache-Control: no-store, no-cache, must-revalidate; Pragma: no-cache; Date: Sun, 10 Sep 2023 18:50:31 GMT; Content-Type: application/json; Server: openresty; Strict-Transport-Security: max-age=63072000; includeSubDomains; preload | body: {"status":"ERROR","message":"Create error: We were unable to create the DNS record."} 2023-09-10T20:50:31+02:00 ERROR HTTP status is not valid: 400: {"status":"ERROR","message":"Create error: We were unable to create the DNS record. ``` Configuration file (**remove your credentials!**): ```json { "settings": [ { "provider": "porkbun", "domain": "domain.com", "host": "@, auth", "api_key": "pk1_", "secret_api_key": "sk1_", "ip_version": "ipv4" } ] } ``` Host OS: Debian 11
Author
Owner

@oolmfoo commented on GitHub (Oct 25, 2023):

You have to delete the default ALIAS record from Porkbun website. https://github.com/qdm12/ddns-updater/issues/546#issuecomment-1773960193

@oolmfoo commented on GitHub (Oct 25, 2023): You have to delete the default ALIAS record from Porkbun website. https://github.com/qdm12/ddns-updater/issues/546#issuecomment-1773960193
Author
Owner

@qdm12 commented on GitHub (Jan 18, 2024):

Thanks @oolmfoo for pointing me to this! I fixed it in the code, see https://github.com/qdm12/ddns-updater/issues/546#issuecomment-1898897406

@trexxeon just repull the latest image and it should now work 😉

@qdm12 commented on GitHub (Jan 18, 2024): Thanks @oolmfoo for pointing me to this! I fixed it in the code, see https://github.com/qdm12/ddns-updater/issues/546#issuecomment-1898897406 @trexxeon just repull the latest image and it should now work 😉
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#310