Named: read zone on cpmove file not parsing header

Version 1.58


DA's zone templates all use @ as the header (after the $TTL line). This fix reads and ignores all comment lines, goes past the first TTL line (as this is set by DA each write anyway) so that it's correctly sitting on either DA's format: @ IN SOA Or the cpmove format: 86400 IN SOA where the next search is for SOA, and it then continues parsing normally. Bug when restoring cpmove files was that DA was expecting @ to be present, when it was not in some cpmove files, thus not restoring some custom zone info. ---- Compile time: Aug 11 2019 at 17:16:22 +

Interested to try DirectAdmin? Get a 30-day Free Trial!