mirror of https://github.com/docker/docs.git
Added timeout and retry limit for dig command.
This commit is contained in:
parent
1249b23510
commit
cd1c855848
|
@ -11,7 +11,7 @@ Util = {};
|
||||||
|
|
||||||
Util.refreshDNS = function (app, callback) {
|
Util.refreshDNS = function (app, callback) {
|
||||||
// Use dig to refresh the DNS
|
// 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(err);
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
console.log(stderr);
|
console.log(stderr);
|
||||||
|
|
Loading…
Reference in New Issue