diff --git a/dyndomain b/dyndomain index 9162b1d..0482313 100755 --- a/dyndomain +++ b/dyndomain @@ -68,7 +68,7 @@ def load_conf(): def ping(hostname): - cmd = "ping -c1 -w3 %s" % hostname + cmd = "ping -4 -c1 -w3 %s" % hostname ret = subprocess.run(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) return 0 if ret.returncode else 1