def do_lookup(self, params):
        # sync(if required) state from the shared memory
        self._sync_state()

        # respond with False if there is no globalname corresponding
        # to the qname, this will result in REFUSED in the front-end
        if params['qname'].lower() not in self._state['globalnames']:
            self.log.append(
                'no globalname found for qname "{}"'.format(params['qname']))
            self.result = False
            return

        # ANY/A response
        if params['qtype'] == 'ANY' or params['qtype'] == 'A':
            self._any_response(params)
            return

        # SOA response
        if params['qtype'] == 'SOA':
            self._soa_response(params)
            return

        # REFUSE otherwise
        self.result = False
args:
dataset/ETHPy150Open polaris-gslb/polaris-gslb/polaris_pdns/core/polaris.py/Polaris.do_lookup