From becd6caa05c6e5cd4ca25c596b8a2350b501b9fb Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 3 Oct 2015 00:11:12 -0500 Subject: Where doing a dynamic DNS update on IPv4, force curl to resolve IPv4 IPs. Ticket #3858 --- src/etc/inc/dyndns.class | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class index feefa93..c31c079 100644 --- a/src/etc/inc/dyndns.class +++ b/src/etc/inc/dyndns.class @@ -290,6 +290,10 @@ $realparentif = $this->_dnsRequestIf; } + if ($this->_useIPv6 == false) { + curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 ); + } + if ($this->_dnsService != 'ods' and $this->_dnsService != 'route53 ') { $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); -- cgit v1.1