diff --git a/scapy/layers/dns.py b/scapy/layers/dns.py index 5315e07b1e97c7ae67ce8fb32df340757508e733..ac7d4ad58124eed26dd141583f968b0a11234e86 100644 --- a/scapy/layers/dns.py +++ b/scapy/layers/dns.py @@ -240,7 +240,7 @@ class DNS(Packet): BitEnumField("opcode", 0, 4, {0:"QUERY",1:"IQUERY",2:"STATUS"}), BitField("aa", 0, 1), BitField("tc", 0, 1), - BitField("rd", 0, 1), + BitField("rd", 1, 1), BitField("ra", 0, 1), BitField("z", 0, 1), # AD and CD bits are defined in RFC 2535 @@ -289,9 +289,9 @@ dnsclasses = {1: 'IN', 2: 'CS', 3: 'CH', 4: 'HS', 255: 'ANY'} class DNSQR(Packet): name = "DNS Question Record" show_indent=0 - fields_desc = [ DNSStrField("qname",""), - ShortEnumField("qtype", 1, dnsqtypes), - ShortEnumField("qclass", 1, dnsclasses) ] + fields_desc = [DNSStrField("qname", "www.example.com"), + ShortEnumField("qtype", 1, dnsqtypes), + ShortEnumField("qclass", 1, dnsclasses)]