Browse Source

new dns helper class

andre 6 months ago
parent
commit
fe9f78c94f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/Helper/DnsHelper.php

+ 2 - 1
core/Helper/DnsHelper.php

@@ -19,7 +19,8 @@ class DnsHelper
     {
         $this->params = $this->getWhmcsParamsByKeys(['domain', 'userid', 'serverhostname', 'domainid', 'serverid', 'pid']);
         $this->server = Server::select('id', 'nameserver1ip', 'nameserver2ip')->findOrFail($this->params['serverid']);
-        $this->nameserver = array(trim($this->server->nameserver1ip), trim($this->server->nameserver2ip));
+//        $this->nameserver = array(trim($this->server->nameserver1ip), trim($this->server->nameserver2ip));
+        $this->nameserver = array('127.0.0.1', '127.0.0.2'); //test
         $this->clientDomains = localAPI('GetClientsDomains', array('clientid' => $this->params['userid']));
         $this->productManager = new ProductManager();
         $this->productManager->loadById($this->params['pid']);