It was noted that query_cname() chaining inside ns_query can take quite a lot of time which blocks the other clients (on the same thread) increasing the latency for waiting clients.
query_cname()
ns_query