Score:0

DNS server (and reverse proxy) with Ubuntu

us flag

I have a bunch of Docker containers running on my Ubuntu server. Each one is accessible within the local area network via IP address and port.

Is there any way to setup a local DNS server for each one so I don't have to keep entering in the IP and port? For example http://container1 will take me to http://10.1.1.2:7000?

Or can this only be done via the router?

ru flag
The answer is "It Depends" - the Docker containers should have their own internal DNS resolution function within Docker, but I'm not 100% sure how your docker containers are currently configured. if the Docker containers are not static IP'd in the configurations they could get any IP and Docker doesn't do a good job of telling external DNS servers what IPs a given container is assigned to. How are your docker containers set up currently?
Artur Meinild avatar
vn flag
This type of functionality is provided by a "reverse proxy" that works in conjunction with your DNS resolver. In addition, the reverse proxy can use a wildcard certificate, so all your services are using a secure (HTTPS) connection. I use [Nginx Proxy Manager](https://nginxproxymanager.com/) for this.
jpbrain avatar
ca flag
Hello @ubntu Have tat setup too. Bring and nginx docker as reverse proxy the you will have something like "http://machine/container1".
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.