DNSQuery: add attribute to mark answer as local (from hosts file).

* extract: Fix checking flag.
Resolver::recv_tcp: use extract method with parameter.