When Dynamic DNS entry uses a gateway group as interface, return_gateway_groups_array() will be called and it returns real interface instead of friendly name, as expected. Take both friendly and real interface name into consideration.
Related issues
Bug #7719: Dynamic DNS updates not working on interface failover
Fix #7719
When Dynamic DNS entry uses a gateway group as interface,
return_gateway_groups_array() will be called and it returns real
interface instead of friendly name, as expected. Take both friendly and
real interface name into consideration.