@mantouboji for a client the IP address does not to be renewed until TTL expires.
So what is the TTL of your DNS registration?
WG will renew the resolve on restart of the WG peer. You can’t check every so many seconds if the DNS changes brcause of Round Robin when having multiple IP addresses. Then MT could have built-in a option that enables to say it is using a dynamic DNS that only will return one IP address.
Automating that, ckeck DNS and accept different IP when connection is lost. User needs to activate that procedure.
TTL doesn’t matter, i have hosts with 15 sec TTL and after ip changes WG never connects back even after several days unless you re-toogle it, which also requires scripts or netwatch for monitoring.
Anyway i repeat, Mikrotiks fix works and issue is solved!
Once RB4011 reboot, change to a new IP, and update domain name (xxx.dyndns.info ), the ax2 resolv the new domain name correctly, but wireguard peer still attemp to connect old IP, so must reboot AX2 to resolv it.