brianreumere / gandi-automatic-dns

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

Use curl instead of dig #9

Closed benjiprod closed 9 years ago

benjiprod commented 9 years ago

For a better compatibilty with "nutty OS", you can use : curl ipinfo.io/ip instead of dig.

brianreumere commented 9 years ago

Things seem to be getting worse as far as inter-operability of DNS-related tools. Some OSs are moving to Unbound and shipping with drill instead of dig, some have removed nslookup, etc. I think the best solution will be to add a flag to specify a custom command that returns IP address information, and leave a somewhat sensible default (dig and OpenDNS).