Bernd Wurst commited on 2018-02-20 11:35:38
Zeige 1 geänderte Dateien mit 1 Einfügungen und 2 Löschungen.
| ... | ... |
@@ -143,7 +143,7 @@ function get_auth_dns($domainname, $tld) {
|
| 143 | 143 |
$sec = 'add'; |
| 144 | 144 |
} |
| 145 | 145 |
if ($sec == 'auth' && preg_match("/^.*\\sIN\\s+NS\\s+\\S+$/", $l)) {
|
| 146 |
- $NS = preg_replace("/^.*\\sIN\\s+NS\\s+(\\S+)$/", '\1', $l);
|
|
| 146 |
+ $NS = preg_replace("/^.*\\sIN\\s+NS\\s+(\\S+)\\.$/", '\1', $l);
|
|
| 147 | 147 |
} |
| 148 | 148 |
if ($sec == 'add' && $NS && preg_match("/^.*\\sIN\\s+A\\s+\\S+$/", $l)) {
|
| 149 | 149 |
$NS_IP = preg_replace("/^.*\\sIN\\s+A\\s+(\\S+)$/", '\1', $l);
|
| ... | ... |
@@ -173,7 +173,6 @@ function has_own_ns($domainname, $tld) |
| 173 | 173 |
foreach ($nsdata as $host => $ip) {
|
| 174 | 174 |
$NS=$host; |
| 175 | 175 |
} |
| 176 |
- DEBUG($NS); |
|
| 177 | 176 |
if (in_array($NS, own_ns())) {
|
| 178 | 177 |
DEBUG('Domain hat unsere DNS-Server!');
|
| 179 | 178 |
return true; |
| 180 | 179 |