Merge pull request #805 from chris5560/master
[project/luci.git] / applications / luci-app-ddns / luasrc / tools / ddns.lua
index 5479143..e55c673 100755 (executable)
@@ -24,12 +24,14 @@ has_fetch   = (SYS.call( [[which uclient-fetch >/dev/null 2>&1]] ) == 0)
 has_fetchssl   = NXFS.access("/lib/libustream-ssl.so")
 has_bbwget     = (SYS.call( [[$(which wget) -V 2>&1 | grep -iqF "busybox"]] ) == 0)
 has_bindhost   = (SYS.call( [[which host >/dev/null 2>&1]] ) == 0)
+               or (SYS.call( [[which khost >/dev/null 2>&1]] ) == 0)
+               or (SYS.call( [[which drill >/dev/null 2>&1]] ) == 0)
 has_hostip     = (SYS.call( [[which hostip >/dev/null 2>&1]] ) == 0)
 has_nslookup   = (SYS.call( [[$(which nslookup) localhost 2>&1 | grep -qF "(null)"]] ) ~= 0)
 has_ipv6       = (NXFS.access("/proc/net/ipv6_route") and NXFS.access("/usr/sbin/ip6tables"))
 has_ssl                = (has_wgetssl or has_curlssl or (has_fetch and has_fetchssl))
 has_proxy      = (has_wgetssl or has_curlpxy or has_fetch or has_bbwget)
-has_forceip    = ((has_wgetssl or has_curl) and (has_bindhost or has_hostip))
+has_forceip    = (has_wgetssl or has_curl or has_fetch) -- only really needed for transfer
 has_dnsserver  = (has_bindhost or has_hostip or has_nslookup)
 has_bindnet    = (has_wgetssl or has_curl)
 has_cacerts    = _check_certs()