andre 2 年之前
父節點
當前提交
0e642cd881
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      testdns.php

+ 1 - 1
testdns.php

@@ -54,6 +54,6 @@ function cwp7CheckSOA($domain, $nameserverIP = NS1) {
 
 $result = cwp7CheckSOA($domain);
 print_r($result);
-$host = cwp7CheckA($host, "5.226.148.139", gethostbyname($result));
+$host = cwp7CheckA($host, "5.226.148.139", gethostbyname($result) ? gethostbyname($result) : NS1);