mageddo / dns-proxy-server

Solve your DNS hosts from your docker containers, then from your local configuration, then from internet
http://mageddo.github.io/dns-proxy-server/
Apache License 2.0
796 stars 79 forks source link

Feature Request: Add "defaultDpsNetworkName" option in configuration file #595

Open defung opened 1 week ago

defung commented 1 week ago

Summary & Motivation

I recently created a docker network, and all my containers that needs to be exposed to DPS will belong to this network. However, as I have many containers, I found it tedious to always add a dps.network=myDpsNetwork label to all my containers. Therefore, it would be great if we can have an option in the configuration file to always use a specific network only.

Example:

{
  ...
  "defaultDpsNetworkName": "myDpsNetwork",
  ...
}

Goals

This avoids the need to add a label to all containers, and make DPS resolve IPs using that network by default. The label should still exist, in case we want to override the default set in the configuration file.