Factor out TestDnsServer into an other class so we can re-use it from other lang tests