Test for execution of dns command within ip endpoint via mock