From 0f07fc9b515f698d5658a9253149b2d772e27bcc Mon Sep 17 00:00:00 2001
From: Sean Li <lishang106@gmail.com>
Date: Thu, 2 Oct 2014 18:58:07 -0700
Subject: [PATCH] Added timeout and retry limit for dig command.

---
 meteor/client/lib/util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meteor/client/lib/util.js b/meteor/client/lib/util.js
index 0f1da75816..f215ce5640 100755
--- a/meteor/client/lib/util.js
+++ b/meteor/client/lib/util.js
@@ -11,7 +11,7 @@ Util = {};
 
 Util.refreshDNS = function (app, callback) {
   // Use dig to refresh the DNS
-  exec('/usr/bin/dig ' + app.name + '.kite @172.17.42.1', function (err, stdout, stderr) {
+  exec('/usr/bin/dig +time=2 +tries=1 ' + app.name + '.kite @172.17.42.1', function (err, stdout, stderr) {
     console.log(err);
     console.log(stdout);
     console.log(stderr);