Use service discovery to find swarm nodes

Is there a way to use service discovery (DNS) to get a list of workers, managers, or all nodes in a swarm.

I want to have a container be able to run a SRV record lookup and retrieve the ip address of each swarm node, and the ability to filter that based on manager vs worker would be nice too.