When writing scripts, always use the options to dig; i.e. in this case, use
dig -q ch -t NS
instead of dig ch NS
Using the options eliminates any possibility of misinterpretations like this.