(self,resolver,
                      address="",
                      port=53,
                      tcp=False,
                      logger=None,
                      handler=DNSHandler,
                      server=None)
resolver:   resolver instance
            address:    listen address (default: "")
            port:       listen port (default: 53)
            tcp:        UDP (false) / TCP (true) (default: False)
            logger:     logger instance (default: DNSLogger)
            handler:    handler class (default: DNSHandler)
            server:     socketserver class (default: UDPServer/TCPServer)
resolver:   resolver instance
            address:    listen address (default: "")
            port:       listen port (default: 53)
            tcp:        UDP (false) / TCP (true) (default: False)
            logger:     logger instance (default: DNSLogger)
            handler:    handler class (default: DNSHandler)
            server:     socketserver class (default: UDPServer/TCPServer)
resolver : resolver instance address : listen address ( default : ) port : listen port ( default : 53 ) tcp : UDP ( false ) / TCP ( true ) ( default : False ) logger : logger instance ( default : DNSLogger ) handler : handler class ( default : DNSHandler ) server : socketserver class ( default : UDPServer / TCPServer )
def __init__(self,resolver,
                      address="",
                      port=53,
                      tcp=False,
                      logger=None,
                      handler=DNSHandler,
                      server=None):
        """
            resolver:   resolver instance
            address:    listen address (default: "")
            port:       listen port (default: 53)
            tcp:        UDP (false) / TCP (true) (default: False)
            logger:     logger instance (default: DNSLogger)
            handler:    handler class (default: DNSHandler)
            server:     socketserver class (default: UDPServer/TCPServer)
        """
        if not server:
            if tcp:
                server = TCPServer
            else:
                server = UDPServer
        self.server = server((address,port),handler)
        self.server.resolver = resolver
        self.server.logger = logger or DNSLogger()
def __init__ ( self , resolver , address = "" , port = 53 , tcp = False , logger = None , handler = DNSHandler , server = None ) : if not server : if tcp : server = TCPServer else : server = UDPServer self . server = server ( ( address , port ) , handler ) self . server . resolver = resolver self . server . logger = logger or DNSLogger ( )