Follow up #4220
short description
by DNS import, NS servers that are the ISPconfig servers are not getting added
correct behaviour
They should get added
environment
Server OS: (debian)
Server OS version: (9)
ISPConfig version: (3.1.11)
proposed fix
I could reproduce & fix this.
The bug happens when you try to add an NS server, that is also in your list of ISPCOnfig servers.
And it happens du to this code:
/usr/local/ispconfig/interface/web/dns/dns_import.php
foreach ($servers as $server){ $dns_rr[$r]['name'] = $soa['name']; $dns_rr[$r]['type'] = 'NS'; $dns_rr[$r]['data'] = $server['server_name']; $dns_rr[$r]['aux'] = 0; $r++; }
The issue is that the 'ttl' is not getting sed.
To fix this, add in the foreach:
$dns_rr[$r]['ttl'] = $soa['ttl'];
references
See closed bug #4220 (closed)
screenshots
optional, of course.
Add screenshots of the problem by clicking "Attach a file" on the bottom right.