예제 #1
0
        static void Main(string[] args)
        {
            server = new DnsServer();

            //If he doens't have the answer it will ask to upper dns server for solving the question
            server.Recursive      = true;
            server.OnRecursive   += Server_OnRecursive;
            server.RecursiveChain = new[] { IPAddress.Parse("192.127.35.30") };

            server.OnRequest = OnRequest;
            server.StartAsync();

            Console.ReadLine();
        }