Problems with wireguard connecting to dynamic domain peers
-
I have multiple dynamic IP based pfsense 2.6 using wireguard for networking (using domain names).
The dynamic domain itself works fine, TTL 60
For example
a.example.com
b.example.com
c.example.com
When a is configured with peer for b and c
b has configured a's peer
c is configured with a's peer
When a changes IPs, b and c can maintain connectivity to a (by checking the status, the peer's IP resolution is updated to the correct new IP)
But when B or C change IPs, A's wireguard does not re-resolve
I'm not sure if it's related to the number or status of peers, the sample is relatively small at the moment, but I suspect that there may be a bug in the wireguard's support for domain names when dealing with peers.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.