(self,header=None,questions=None,
                      rr=None,q=None,a=None,auth=None,ar=None)
Create new DNSRecord
Create new DNSRecord
Create new DNSRecord
def __init__(self,header=None,questions=None,
                      rr=None,q=None,a=None,auth=None,ar=None):
        """
            Create new DNSRecord
        """
        self.header = header or DNSHeader()
        self.questions = questions or []
        self.rr = rr or []
        self.auth = auth or []
        self.ar = ar or []
        # Shortcuts to add a single Question/Answer
        if q:
            self.questions.append(q)
        if a:
            self.rr.append(a)
        self.set_header_qa()
def __init__ ( self , header = None , questions = None , rr = None , q = None , a = None , auth = None , ar = None ) : self . header = header or DNSHeader ( ) self . questions = questions or [ ] self . rr = rr or [ ] self . auth = auth or [ ] self . ar = ar or [ ] # Shortcuts to add a single Question/Answer if q : self . questions . append ( q ) if a : self . rr . append ( a ) self . set_header_qa ( )