How to detect if a DNS request occurred without corresponding HTTP request

Hello,

I am trying to write a script to figure out how to detect if a DNS request occurred without a corresponding HTTP request? Can you explain to me how this can be done?

Thanks