Skip to content

Bug: DNS upstream set as local plain address but cloudflare still being used #3231

Description

@sfxdude

Is this urgent?

None

Host OS

Debian Buster

CPU arch

x86_64

VPN service provider

AirVPN

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version latest built on 2026-03-11T20:49:21.026Z (commit b5b0e01) on Linux 6.12.73+deb13-amd64 (x86_64)

What's the problem 🤔

I have the following relevant config items set in my docker-compose:

      - DNS_UPSTREAM_RESOLVER_TYPE=plain
      - DNS_UPSTREAM_PLAIN_ADDRESSES=192.168.30.2:53

      - FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/16

(this seems the only things I should need to enable entirely local based DNS resolution based on the latest wiki?)

This is the relevant section from the container startup:

gluetun-1 | ├── DNS settings:
gluetun-1 | | ├── Upstream resolver type: plain
gluetun-1 | | ├── Upstream resolvers:
gluetun-1 | | | └── 192.168.30.2:53
gluetun-1 | | ├── Caching: no
gluetun-1 | | ├── IPv6: no
gluetun-1 | | ├── Update period: every 24h0m0s
gluetun-1 | | └── DNS filtering settings:
gluetun-1 | | ├── Block malicious: yes
gluetun-1 | | ├── Block ads: no
gluetun-1 | | └── Block surveillance: no
gluetun-1 | ├── Firewall settings:
gluetun-1 | | ├── Enabled: yes
gluetun-1 | | ├── VPN input ports:
gluetun-1 | | | └── 23797
gluetun-1 | | └── Outbound subnets:
gluetun-1 | | └── 192.168.0.0/16

However the container never queries the upstream server located at 192.168.30.2:53.

Connecting a HTTP proxy to the container I can see cloudflare DNS shown as being used at https://ipleak.net

I've connected wbitt/network-multitool to the stack and it does seem that it is ignoring that upstream resolver.

From network-multiool connected to gluetuns network:

/ # dig +short pve1.internal @192.168.30.2
192.168.1.51
/ # dig +short pve1.internal
/ # 

Share your logs (at least 10 lines)

gluetun-1  | ├── DNS settings:
gluetun-1  | |   ├── Upstream resolver type: plain
gluetun-1  | |   ├── Upstream resolvers:
gluetun-1  | |   |   └── 192.168.30.2:53
gluetun-1  | |   ├── Caching: no
gluetun-1  | |   ├── IPv6: no
gluetun-1  | |   ├── Update period: every 24h0m0s
gluetun-1  | |   └── DNS filtering settings:
gluetun-1  | |       ├── Block malicious: yes
gluetun-1  | |       ├── Block ads: no
gluetun-1  | |       └── Block surveillance: no
gluetun-1  | ├── Firewall settings:
gluetun-1  | |   ├── Enabled: yes
gluetun-1  | |   ├── VPN input ports:
gluetun-1  | |   |   └── 23797
gluetun-1  | |   └── Outbound subnets:
gluetun-1  | |       └── 192.168.0.0/16

Share your configuration

- DNS_UPSTREAM_RESOLVER_TYPE=plain
      - DNS_UPSTREAM_PLAIN_ADDRESSES=192.168.30.2:53

      - FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/16

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions