public DnsServer(DnsConfiguration config, ServiceRegistry registry, RecordStore store)
public DnsServer(DnsConfiguration config, IoAcceptor acceptor, RecordStore store)
    public DnsServer(DnsConfiguration config, ServiceRegistry registry, RecordStore store)    {        this.config = config;        this.registry = registry;        this.store = store;        String name = config.getName();        int port = config.getPort();        try        {            handler = new DnsProtocolHandler( config, this.store );            udpService = new Service( name, TransportType.DATAGRAM, port );            tcpService = new Service( name, TransportType.SOCKET, port );            registry.bind( udpService, handler );            registry.bind( tcpService, handler );            log.debug( "{} listening on port {}", name, new Integer( port ) );        }        catch ( IOException ioe )        {            log.error( ioe.getMessage(), ioe );        }    }