private static void InitAuthoritativeResolver() { // Setup the authoritative resolver. // Primary name server is on 127.0.0.1:5400. AuthoritativeResolutionSettings settings = new AuthoritativeResolutionSettings() { Cache = true, DnsResolutionPort = 5400, // perform DNS resolutions on 5400 PrimaryNameServer = new DnsIPEndpointSettings[] { new DnsIPEndpointSettings("127.0.0.1", 5400) }, TimeoutMilliseconds = 30000 }; // Create the authoritative resolver. AuthoritativeRecordResolver resolver = new AuthoritativeRecordResolver(settings); // Setup DNS server to host the authoritative resolver at 127.0.0.1:5401 DnsServerSettings dnsServerSettings = new DnsServerSettings(); dnsServerSettings.Address = "127.0.0.1"; dnsServerSettings.Port = 5401; s_authoritativeResolverServer = new TestServer(resolver, dnsServerSettings); s_authoritativeResolverServer.Server.Start(); }