def _soa_response(self, params):
        # if pool is DOWN and fallback is set to "refuse", refuse SOA queries
        # when both SOA any ANY results in False the pdns will produce a REFUSE
        qname = params['qname'].lower()
        pool_name = self._state['globalnames'][qname]['pool_name']
        pool = self._state['pools'][pool_name]
        if not pool['status'] and pool['fallback'] == 'refuse':
            self.result = False
            return

        # append ns with a dot here
        ns = '{}.'.format(config.BASE['HOSTNAME'])
        contact = 'hostmaster.{}'.format(ns)                  
        content = ('{ns} {contact} {serial} {retry} {expire} {min_ttl}'.
                   format(ns=ns,
                          contact=contact,
                          serial=1,
                          retry=600,
                          expire=86400,
                          min_ttl=1))

        # add record to the response
        self.add_record(qtype='SOA',
                        # use the original qname from parameters dict
                        qname=params['qname'],
                        content=content,
                        ttl=60)
Generate a response to a SOA query.
dataset/ETHPy150Open polaris-gslb/polaris-gslb/polaris_pdns/core/polaris.py/Polaris._soa_response