Support #35087
openDNS POST: how to force record creation
Description
hi, i am using the foreman smartproxy on its own.
i know that foreman is able to force record creation/overwrite, if for example a PTR record for an ip is still present.
i guess foreman is setting some attribute in the post body for this, could you please let me know the name and value of the parameter to force record creation?
Updated by Ewoud Kohl van Wijngaarden over 2 years ago
I think Foreman deletes it because we don't have code to force it. From a REST perspective you would expect PUT /:value/:type
but there's no implementation for that. Would be a good enhancement though.
Updated by Stephan Schultchen over 2 years ago
okay so the solution right now would be to make a POST call, if it fails with a duplicate resource error (or whatever it is throwing), make a DELETE call, and then retry the POST again.
that would also work for me, thx
Updated by Ewoud Kohl van Wijngaarden almost 2 years ago
- Related to Bug #13696: Rebuild Config deletes PTR records but does not add them added