Jump to content
Not connected, Your IP: 216.73.216.222
ThisisGabeB

DNS failing inside Gluetun Docker container using AirVPN (WireGuard)

Recommended Posts

Hi all,

I'm using AirVPN with a Docker setup running the `qmcgaw/gluetun` image, connected via WireGuard. My VPN connects fine (IP resolves to Netherlands), but DNS consistently fails inside the container. This blocks my use of block lists and apps like qBittorrent inside the VPN tunnel.

---

###  My Setup

- VPN provider: AirVPN
- Protocol: WireGuard
- Config: Using .conf file downloaded from AirVPN (NL-Alblasserdam)
- Docker image: `qmcgaw/gluetun:latest`
- Host OS: Ubuntu 22.04 on a Beelink Mini PC
- DNS inside Gluetun: 1.1.1.1, 8.8.8.8 (also tried AirVPN internal DNS)

---

### The Problem

Inside the Gluetun container, I get repeated logs like this:

WARN [dns] cannot update filter block lists: context deadline exceeded


And when I test:

```bash
docker exec -it gluetun ping 1.1.1.1     # works
docker exec -it gluetun ping google.com  # fails

It looks like DNS isn’t resolving inside the container even though the VPN tunnel is active.

What I’ve Tried

  • Manually set DNS_ADDRESS to 1.1.1.1 and 8.8.8.8

  • Let Gluetun fallback to default DNS

  • Confirmed .conf has working endpoint and is generating an IP

  • Verified my WireGuard config connects properly outside of Docker


Are there specific DNS settings or internal AirVPN DNS servers I should be using when routing traffic through Gluetun in Docker? Could there be issues with DNS filtering/blocking or routing at the endpoint level?

Any help appreciated!

 

Share this post


Link to post
@ThisisGabeB

Hello!

Before anything else, please discern whether the problem is caused by a failed WireGuard connection or not, by connecting WireGuard directly from the host, because similar problems which were initially thought as GlueTun bugs:
https://github.com/qdm12/gluetun/issues/2458
turned out to be unrelated to GlueTun.

Also check this one, just in case it helps:
https://github.com/qdm12/gluetun/issues/2516
Read in particular this answer https://github.com/qdm12/gluetun/issues/2516#issuecomment-2602591109

Kind regards
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...