LB nodes IP resolution from outside

What would you use to make a domain name which resolves to a random node public IP ?

I can for exemple use NSD to manage app.example.org a assign multiple “A” with the same name to do round robin resolution. But how to be able to synchronize the DNS server config with the dynamic addition and removing of nodes ?

Maybe there is good starting point here