I noticed my Linux machine makes many DNS queries for a specific domain (subdomain) malicious.foo.bar
How can I find out which application or process tries to resolve this domain?
I also want to see the exact URL this process is requesting (for example https://malicious.foo.bar/baz.php
) and some details of the requests to see the payload.
What steps should I follow to achieve it?