From 08a4c9b155969b9513bb438126293d0f2820b160 Mon Sep 17 00:00:00 2001 From: gjudic Date: Wed, 6 Jan 2021 19:57:10 +0100 Subject: [PATCH] add refresh for dns --- myDNS.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/myDNS.js b/myDNS.js index 30496eb..482f199 100644 --- a/myDNS.js +++ b/myDNS.js @@ -18,5 +18,8 @@ var ovh = require('ovh')({ console.log(err || result); console.log("Le domaine " + element.domain + " a ete match avec l'IP " + myip); }); + ovh.request('POST', '/domain/zone/' + element.domain + '/refresh', function (err, result) { + console.log(err || result); + }); }); })(); \ No newline at end of file