Skip to content

Bug: WIREGUARD_ENDPOINT_IP doesn't support DNS #2927

@OdinVex

Description

@OdinVex

Is this urgent?

No

Host OS

No response

CPU arch

x86_64

VPN service provider

Custom

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version latest built on 2025-10-06T11:38:57.746Z (commit 3400165)

What's the problem 🤔

I understand most VPN providers/servers use static IP addresses, but I'd like to be able to support a FQDN instead of IP. Wireguard naturally supports it (Endpoint = fqdn.example.com:12345)

Share your logs (at least 10 lines)

========================================
========================================
=============== gluetun ================
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================
Running version latest built on 2025-10-06T11:38:57.746Z (commit 3400165)
🔧 Need help? ☕ Discussion? https://github.com/qdm12/gluetun/discussions/new/choose
🐛 Bug? ✨ New feature? https://github.com/qdm12/gluetun/issues/new/choose
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2025-10-07T01:36:44Z ERROR reading VPN settings: VPN provider: server selection: files WIREGUARD_ENDPOINT_IP: ParseAddr("FQDN_REMOVED"): unexpected character (at "FQDN_REMOVED")
2025-10-07T01:36:44Z INFO Shutdown successful

Share your configuration

- VPN_SERVICE_PROVIDER=custom
- VPN_TYPE=wireguard


Relying on `/gluetun/wireguard/wg0.conf`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions