From: hickert Date: Mon, 27 Aug 2007 09:03:02 +0000 (+0000) Subject: Add ns record automatically X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3fdc5918d45996377939b33cd08113a2dc6b033e;p=gosa.git Add ns record automatically git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7143 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 154eac38f..de022df19 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -602,6 +602,10 @@ class termDNS extends plugin */ if(!empty($this->ipHostNumber)){ $this->dnsEntry['RECORDS'][] = array("type"=>"aRecord","value"=>$this->ipHostNumber); + $ldap->cat(getDNSZoneDN($this->config,$this->dnsEntry['zoneName'])); + $attrs = $ldap->fetch(); + $str = trim(preg_replace("/(^[^ ]*).*$/","\\1",$attrs['sOARecord'][0])); + $this->dnsEntry['RECORDS'][] = array("type"=>"nsRecord","value"=>$str); } /* Create diff and follow instructions