How are subdomain resolved?

Solution 1:

This isn't a tricky question.
It's basic DNS operations to evaluate in the order of .net -> mysite.net -> test.mysite.net, passing the request from one domain DNS server to another.

See How Lookups Are Handled for a graphical explanation.