Properly handle subdomains in ncredir
Since ncredir additionally handles subdomains, we need to first verify that the underlying second-level domain is active/managed and remove any subdomains accordingly. If there are any subdomains of a valid/managed domain, we'll leave it be as someone might have manually put it there.
Closes T369114