public DnsServer(IQuestionAnswerer questionAnswerer, IPEndPoint endServer = null) { this.emitter = new EventEmitter(); if (endServer != null) { this.client = new DnsClient(endServer, new UdpRequestResolver()); } this.questionAnswerer = questionAnswerer; }
public DnsServer(IQuestionAnswerer questionAnswerer, string endServerIp, int port = DEFAULT_PORT) : this(questionAnswerer, IPAddress.Parse(endServerIp), port) { }
public DnsServer(IQuestionAnswerer questionAnswerer, IPAddress endServer, int port = DEFAULT_PORT) : this(questionAnswerer, new IPEndPoint(endServer, port)) { }