On Fri, Apr 12, 2024 at 1:50 PM cagsm
On Fri, Apr 12, 2024 at 10:55 AM Andrei Borzenkov
wrote: You can always add set -x at the top and get a complete execution trace.
in the bash script?
Yes. Or simply run it as bash -x reresolve-dns.sh
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
okay so that actual line with the variable $ENDPOINT then takes my dyndns hostname from the wg0.conf file and does then at the moment of that call do a dns lookup and thus then takes the then-current value and sets it as endpoint, right?
Yes.
ping your.dns.name is using? Does it change when your address changes? Does it match what you see in "wg show" output?
no it doesnt match, as I have stated.
Well, run bash -x reresolve-dns.sh ping your.dns.name and post output. Obfuscate wg keys if you like.