1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Added timeout and retry limit for dig command.

This commit is contained in:
Sean Li
2014-10-02 18:58:07 -07:00
parent 1249b23510
commit cd1c855848

View File

@@ -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);