Refactor DNS Server to use a Dependency Injection type pattern.