harbor run -t LiteCoder/local-dns-docker-nginxharbor download LiteCoder/local-dns-docker-nginxConfigure a BIND9 local DNS server on the host and deploy a Dockerized Nginx web application that resolves via the custom domain app.dev.local.
dev.local.dev.local with the following records:
dev.localns.dev.localns.dev.local resolving to 127.0.0.1app.dev.local resolving to 172.20.0.10127.0.0.1 (port 53)./etc/resolv.conf) must be configured to use 127.0.0.1 as the nameserver so that local DNS queries go through BIND9.dev-network with subnet 172.20.0.0/16.dev-appdev-network network172.20.0.1080 mapped to container port 80index.html at its web root containing exactly the following content:
<h1>Welcome to app.dev.local</h1>
dig @127.0.0.1 app.dev.local must return an A record with address 172.20.0.10.curl http://app.dev.local must return a response containing <h1>Welcome to app.dev.local</h1>.dev-app must be running with IP 172.20.0.10 on the dev-network network.named) must be active and running.