From: hickert Date: Mon, 5 Oct 2009 09:50:51 +0000 (+0000) Subject: Fixed problem with DNS Plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f12547c4b6640b7de58b3474ba5c42e756233de0;p=gosa.git Fixed problem with DNS Plugin -Saving a workstation twice caused duplicate and reversed iPHostNumber entries. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14508 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index 4ceb6fbcb..e08e9afdd 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -156,9 +156,10 @@ class termDNS extends plugin */ $this->dnsEntry = DNS::getDNSHostEntries($config,$this->OrigCn); + $ptr = DNS::FlipIp($this->get_pTRRecord()); + /* Remove A record which equals $this->ipHostNumber */ - $ptr = $this->get_pTRRecord(); foreach($this->dnsEntry['RECORDS'] as $key => $rec){ if(($rec['type'] == "aRecord") && ($rec['value'] == $this->ipHostNumber)){ unset($this->dnsEntry['RECORDS'][$key]);