Handle NXDOMAIN, REFUSED and log errors
Handle NXDOMAIN, REFUSED and log errors

- NXDOMAIN is an authoritive answer, so when receiving an NXDOMAIN, we're done.
  From RFC 1035: Name Error - Meaningful only for responses from an authoritative
  name server, this code signifies that the domain name referenced in the query
  does not exist.
  FROM RFC 8020: When an iterative caching DNS resolver receives an NXDOMAIN
  response, it SHOULD store it in its cache and then all names and resource
  record sets (RRsets) at or below that node SHOULD be considered unreachable.
  Subsequent queries for such names SHOULD elicit an NXDOMAIN response.
- REFUSED can be a transitional status: (https://www.ietf.org/rfc/rfc1035.txt)
  The name server refuses to perform the specified operation for
  policy reasons.  For example, a name server may not wish to provide the
  information to the particular requester, or a name server may not wish to
  perform a particular operation (e.g., zone)

Other errors are now logged as debug-message, which can be useful for
troubleshooting.

Signed-off-by: Sebastiaan van Stijn <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@gone.nl>

jameszhan/docker,Mokolea/docker,nalind/docker,paralin/docker,bearstech/moby,paralin/docker,cpuguy83/docker,moby/moby,docker/docker,mahak/docker,moul/docker,cpuguy83/docker,gnailuy/docker,AkihiroSuda/docker,djs55/docker,moby/moby,vdemeester/docker,nawawi/docker,gnailuy/docker,jameszhan/docker,docker/docker,flavio/docker,thaJeztah/docker,konstruktoid/docker-upstream,bearstech/moby,nawawi/docker,jthelin/docker,vdemeester/docker,djs55/docker,mahak/docker,cpuguy83/docker,nalind/docker,jimjag/docker,Ramzec/docker,Mokolea/docker,yosifkit/docker,flavio/docker,AkihiroSuda/docker,yosifkit/docker,trebonian/docker,bearstech/moby,moul/docker,Mokolea/docker,bearstech/moby,moul/docker,jthelin/docker,trebonian/docker,thaJeztah/docker,konstruktoid/docker-upstream,nalind/docker,jameszhan/docker,Mokolea/docker,trebonian/docker,konstruktoid/docker-upstream,paralin/docker,jimjag/docker,vdemeester/docker,yosifkit/docker,flavio/docker,gnailuy/docker,nalind/docker,cpuguy83/docker,jimjag/docker,gnailuy/docker,yosifkit/docker,jimjag/docker,trebonian/docker,moul/docker,AkihiroSuda/docker,mahak/docker,nawawi/docker,moby/moby,docker/docker,moby/moby,Ramzec/docker,Ramzec/docker,nawawi/docker,thaJeztah/docker,thaJeztah/docker,mahak/docker,konstruktoid/docker-upstream,djs55/docker,flavio/docker,Ramzec/docker,AkihiroSuda/docker,paralin/docker