From 3fdc5918d45996377939b33cd08113a2dc6b033e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 27 Aug 2007 09:03:02 +0000 Subject: [PATCH] Add ns record automatically git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7143 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_termDNS.inc | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2