How I can configure my local machine to use a docker hosted dns server alonsside with ant other dns settings for specific domains?

I have the following docker-compose.yml used as php web app local solution: version: "3.1" services: nginx: image: nginx:1.13 volumes: - "./configuration/nginx.conf:...