Refactored DNS service with proper responses for all questions needed.