scenario: factor out socket handling and sending DNS queries to mock_client.py

This is useful for code clarity and for other use-cases other than Deckard.
11 jobs for scenario-refactor
in 3 minutes and 35 seconds and was queued for 2 seconds
latest