DO Ideas 2

DNS record update via API - use requestors IP for data

Currently when I need to push out an update for DNS A record via API, I first have to fetch the IP of the record from somewhere.

In case the machine is behind NAT, I usually need to do two requests - one is to look up an IP from external service and second is to do the API request to actually update the record with IP.

Now, it would be cool, if I could specify in the API call arguments to take the IP from the origin of the request, aka something like this:

curl -s -X PUT -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN" -d "{\"data\":\"origin-ip\"}" "$DOMAIN/records/$RECORD_ID

  • Priit Laes
  • Sep 11 2018
  • Will not implement
  • Sep 11, 2018

    Admin Response

    Thanks for the feedback, we will take the suggestion into consideration, but I'm not sure this is something we would implement, since it makes the IP assignment implicit. I understand that it would fit your use case, but it could potentially cause confusion for most users.
  • Attach files