Problems with servers with multiple IP's and automatic DNS config
Problem:
- I configure a DNS service with more than one subdomain (example: admin.test.local. (192.168.1.0/24) and server.test.local. (192.168.2.0/24))
- and a server with two IP's (in both networksegments) 192.168.2.1 (ipHostNumber) and 192.168.1.1 (addionalHostNumber)
- Now there is a problem with the methode DNS::getDNSHostEntires. The Methode returns the DNS entry for the host, but if the hostname is registered in both zones, then the DNSHostEntry is taken from the first occurance which was found (see plugins/admin/systems/services/dns/class_DNS.inc line 389, "$id_tmp = key($foundIn);"). foundIn is an array with all zones, in which the device was found, but then the key takes always the first entry from the foundIn Array. In my case, the server was found in both zones and then the key(foundIn) returns the admin-zone. Then, if I want save other changes a dialog appears with the message, that the serverIP 192.168.2.1 is not part of the reverse-Zone 1.168.192.in-addr.arpa. . This message is true, but the reverse Zone is wrong. It should be 2.168.192.in.addr.arpa..
Now I add a parameter (zoneName) to the getDNSHostEntries, that the search is made in the correct zone. I'm not sure, if there are no side effects with this. But it seems to be ok. I have also add the parameter to the getDNSHostEntriesDiff. All occurance are fixed with correct zoneName.
What do you think, does it working with all configurations?
(from redmine: issue id 290, created on 2011-06-17, closed on 2016-02-12)
- Relations:
- relates #3265 (closed)
- Changesets:
- Revision 2f9b148a by Benoit MORTIER on 2012-01-25T09:13:44.000Z:
Fixes: #290 Problems with servers with multiple IP's and automatic DNS config
- Revision c73f5a74 by Benoit MORTIER on 2012-03-17T11:23:13.000Z:
Revert "Fixes: #290 Problems with servers with multiple IP's and automatic DNS config"
This reverts commit 2f9b148a03721d84836ac07d5f9e15ad7acbd479.
Reverting Fixes: #290 Problems with servers with multiple IP's and automatic DNS config
- Custom Fields:
- Bug in version: 1.0.4
- Uploads: