title: How to filter packets sent by dns.lookup in Wireshark on Windows?
body: <p>To give some context: we're monitoring the network connectivity in our app by calling nodeJS <code>dsn.lookup</code> within an interval. Some of our users are facing issues with this technique. So I'd like to inspect what's going on when degrading the network connectivity with a tool like <a href="https://jagt.github.io/clumsy/" rel="nofollow noreferrer">clumsy</a> .</p>
  
  <p>Before debugging the app, I 'd rather like to ensure clumsy is doing a proper job (when playing with the packet drop feature for example) and want to inspect the packets in Wireshark.</p>
  
  <p>What filter should I apply to filter the packets I am interested in?</p>
  
  <p>Reading at <a href="https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback" rel="nofollow noreferrer">the documentation of dns.lookup</a>, it seems that the method as nothing to do with a real dns request and under the hood, it's using the system getaddrinfo implementation. Unfortunately, this does not really help me to figure out a proper filter in Wireshark. I even feel that somehow, the request aren't even captured, since I did a global search with the ip and the hostname I am performing the lookup against. </p>