2023-11-09

porkbun + ddclient = ???

I wanted to use ddclient to update the A record for my domain registered via Porkbun.

I kept getting a weird error: "{"status":"ERROR","message":"Invalid domain."}"

In the end, I was able to resolve this by adding "on-root-domain=yes" to the beginning of the line containing my domain name in "ddclient.conf". I guess I needed it because my domain doesn't include a subdomain? Gosh.

In the end, my config looked like this:

use=cmd, cmd='curl https://ipecho.net/plain'
protocol=porkbun
apikey=pk1_abcdef
secretapikey=sk1_abcdef
on-root-domain=yes example.com

Blaaaah