Is it possible to provide DNS server to resolve the host names?

I’m using a container overlay network for all my docker containers. I want to expose some of the ports of the docker containers as targets in boundary. I have a DNS server available which can resolve all the container IP addresses. Is it possible to setup DNS server for boundary workers?