From f12547c4b6640b7de58b3474ba5c42e756233de0 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 5 Oct 2009 09:50:51 +0000 Subject: [PATCH] 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 --- gosa-plugins/systems/admin/systems/class_termDNS.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); -- 2.30.2