<s> from dnslib import * <EOL> d = DNSRecord ( DNSHeader ( qr = <NUM_LIT:1> , aa = <NUM_LIT:1> , ra = <NUM_LIT:1> ) , <EOL> q = DNSQuestion ( "<STR_LIT>" ) , <EOL> a = RR ( "<STR_LIT>" , rdata = A ( "<STR_LIT>" ) ) ) <EOL> print d <EOL> print str ( DNSRecord . parse ( d . pack ( ) ) ) == str ( d ) </s>
