AdGuard/ Pfsense: Updating Records

Guy’s does anyone know of a way to update A records in ADguard or Pfsense via an Automation in HA.

I have setup the local IP sensor and this works find keep a track if the local IP address changes.

When the Docker container reboots the IP address changes and due to being part of a Docker Swarm it not possible to have a static IP address

Thanks

Rich