![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
12 Apr
2024
12 Apr
'24
08:55
On Fri, Apr 12, 2024 at 11:27 AM cagsm <cumandgets0mem00f@gmail.com> wrote:
How would I debug this stuff to actually see how this wg set line gets called and what content of the hostname gets set?
You can always add set -x at the top and get a complete execution trace.
https://github.com/WireGuard/wireguard-tools/blob/13f4ac4cb74b5a833fa7f825ba...
and more importantly I would like to understand where and how that bash script? or what part does actually resolve the dns name of my changing dyndns stuff
It does not. "wg set ... endpoint $ENDPONT" does DNS lookup on the $ENDPOINT value. Did you check what address ping your.dns.name is using? Does it change when your address changes? Does it match what you see in "wg show" output?