[GH-ISSUE #207] dps.network label not working #85

Closed
opened 2026-02-26 04:34:00 +03:00 by kerem · 1 comment
Owner

Originally created by @bootsie123 on GitHub (Aug 18, 2020).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/207

What is Happening

Hi! I'm trying to use DPS in a Docker swarm to manage private containers when using a VPN. I have a few containers which use multiple networks. In my case, I have a network specifically for containers that can be accessed via the VPN. What happens is DPS resolves the IP to be another network. Even though I specified via labels to use the `VPN network.

What is expected

If I understand the documentation correctly, when adding the dps.network label, I can specify which network to use when resolving the IP. In my situation I expect the VPN network to be used instead of other networks.

Steps to Reproduce

Here's my docker-compose file for DPS:

version: '3.3'
services:
  dnsproxy:
    image: defreitas/dns-proxy-server:latest
    hostname: dns.local
    environment:
      MG_REGISTER_CONTAINER_NAMES: '1'
    volumes:
     - /var/run/docker.sock:/var/run/docker.sock
     - /etc/resolv.conf:/etc/resolv.conf
    networks:
     - vpn
    logging:
      driver: json-file
networks:
  vpn:
    external: true

and here's the docker-compose file for the test service I'm using:

version: '3.3'
services:
  goofy_elgamal:
    image: nginxdemos/hello:latest
    hostname: test.local
    networks:
     - proxy
     - vpn
    logging:
      driver: json-file
    deploy:
      mode: global
      labels:
        dps.network: vpn
networks:
  proxy:
    external: true
  vpn:
    external: true

Specs:

  • OS: Ubuntu 18.04
  • Docker Version: 19.03.12, build 48a66213fe
  • DPS Version: 2.19.0
Originally created by @bootsie123 on GitHub (Aug 18, 2020). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/207 ### What is Happening Hi! I'm trying to use DPS in a Docker swarm to manage private containers when using a VPN. I have a few containers which use multiple networks. In my case, I have a network specifically for containers that can be accessed via the VPN. What happens is DPS resolves the IP to be another network. Even though I specified via labels to use the `VPN network. ### What is expected If I understand the documentation correctly, when adding the `dps.network` label, I can specify which network to use when resolving the IP. In my situation I expect the VPN network to be used instead of other networks. ### Steps to Reproduce Here's my docker-compose file for DPS: ``` version: '3.3' services: dnsproxy: image: defreitas/dns-proxy-server:latest hostname: dns.local environment: MG_REGISTER_CONTAINER_NAMES: '1' volumes: - /var/run/docker.sock:/var/run/docker.sock - /etc/resolv.conf:/etc/resolv.conf networks: - vpn logging: driver: json-file networks: vpn: external: true ``` and here's the docker-compose file for the test service I'm using: ``` version: '3.3' services: goofy_elgamal: image: nginxdemos/hello:latest hostname: test.local networks: - proxy - vpn logging: driver: json-file deploy: mode: global labels: dps.network: vpn networks: proxy: external: true vpn: external: true ``` **Specs:** - OS: `Ubuntu 18.04` - Docker Version: `19.03.12, build 48a66213fe` - DPS Version: `2.19.0`
kerem closed this issue 2026-02-26 04:34:00 +03:00
Author
Owner

@bootsie123 commented on GitHub (Oct 26, 2020):

The problem still hasn't been resolved, but I'm closing the issue since it's no longer relevant to me. Feel free to open this back up again if someone else is having this issue

<!-- gh-comment-id:716524487 --> @bootsie123 commented on GitHub (Oct 26, 2020): The problem still hasn't been resolved, but I'm closing the issue since it's no longer relevant to me. Feel free to open this back up again if someone else is having this issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#85
No description provided.