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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user