(self,prefix="")
return prefix + ("\n" + prefix).join(z)
Formatted 'DiG' (zone) style output 
            (with optional prefix)
Formatted 'DiG' (zone) style output 
            (with optional prefix)
Formatted DiG ( zone ) style output ( with optional prefix )
def toZone(self,prefix=""):
        """
            Formatted 'DiG' (zone) style output 
            (with optional prefix)
        """
        z = self.header.toZone().split("\n")
        if self.questions:
            z.append(";; QUESTION SECTION:")
            [ z.extend(q.toZone().split("\n")) for q in self.questions ]
        if self.rr:
            z.append(";; ANSWER SECTION:")
            [ z.extend(rr.toZone().split("\n")) for rr in self.rr ]
        if self.auth:
            z.append(";; AUTHORITY SECTION:")
            [ z.extend(rr.toZone().split("\n")) for rr in self.auth ]
        if self.ar:
            z.append(";; ADDITIONAL SECTION:")
            [ z.extend(rr.toZone().split("\n")) for rr in self.ar ]
        return prefix + ("\n" + prefix).join(z)
def toZone ( self , prefix = "" ) : z = self . header . toZone ( ) . split ( "\n" ) if self . questions : z . append ( ";; QUESTION SECTION:" ) [ z . extend ( q . toZone ( ) . split ( "\n" ) ) for q in self . questions ] if self . rr : z . append ( ";; ANSWER SECTION:" ) [ z . extend ( rr . toZone ( ) . split ( "\n" ) ) for rr in self . rr ] if self . auth : z . append ( ";; AUTHORITY SECTION:" ) [ z . extend ( rr . toZone ( ) . split ( "\n" ) ) for rr in self . auth ] if self . ar : z . append ( ";; ADDITIONAL SECTION:" ) [ z . extend ( rr . toZone ( ) . split ( "\n" ) ) for rr in self . ar ] return prefix + ( "\n" + prefix ) . join ( z )