brianreumere / gandi-automatic-dns

Dynamic DNS shell script for Gandi
Other
100 stars 22 forks source link

Fix ownip empty response when obtaining the A record over ipv6 #29

Closed luminoso closed 4 years ago

luminoso commented 4 years ago

In the case that a network interface has both ipv4 and ipv6 connectivity if dig invocation for the discovery of a ipv4 ext_ip address is done over an ipv6 connection the result comes empty.

The solution is to force the dig invocation to be performed over ipv4 when record_type is A so that the OpenDNS can correctly identify the ext_ip

brianreumere commented 4 years ago

Thanks! I think this might fix some issues people were having in https://github.com/brianpcurran/gandi-automatic-dns/issues/27.

brianreumere commented 4 years ago

Tagged as release v1.4.1: https://github.com/brianpcurran/gandi-automatic-dns/releases/tag/v1.4.1