Dynamic Registration of SRV records

Would it be possible to do dynamic registration of SRV records for services?

For example when a container is started we add an SRV record into dnsmasq that is managed by lxd or should I switch to dynamic mode for that sort of stuff? it would be ideal to be able to use managed mode but modify SRV record from within the container.

This basically means service discovery is simple and we can just run a load balancer in that looks at the SRV records.

Means we get service discovery without having to install any extra piece of software like consul. It keeps the setup simple.