mail-in-a-box/mailinabox — pull request #282 by m4rcs (2014-12-09 16:14:25+00:00)
Title: Fix secondary NS status check

If you have added an external secondary NS server the status check fails if the name of the secondary NS starts with a letter lower than `n`.

__Example:__

The nameservers set on this domain are incorrect. They are currently c.ns.buddyns.com; ns1.example.com. Use your domain name registrar's control panel to set the nameservers to ns1.example.com; c.ns.buddyns.com.

The Problem is that the [query_dns function](https://github.com/mail-in-a-box/mailinabox/blob/master/management/status_checks.py#L370) sorts its results. In contrast to that in the [check_dns_zone function](https://github.com/m4rcs/mailinabox/blob/master/management/status_checks.py#L210) the result of the query_dns function is compared to the unsorted NS.

I fixed the problem by sorting the correct_ns variable before comparing it to the currently set NS.