title: Access Docker Container Name By DNS Subdomain
body: <p>Basically, I have Docker Swarm running on physical machine with public IPv4 address and registered domain, say <strong>example.com</strong></p>
  
  <p>Now, I would like to access the running containers from Internet using their names as a subdomain. 
  For instance, lets say there is a <strong>mysql</strong> container running with name <strong>mysqldb</strong>. I would like to be able to access it from Internet by the following DNS:</p>
  
  <p><strong>mysqldb.example.com</strong></p>
  
  <p>Is there any way to achieve this?</p>