I have got a question. I want to send dns query packet in stateless mode. I use scapy to build the packet like this,
pkt=Ether()/IP(src=srcip)/UDP()/DNS(aa=1,qd=DNSQR(qname="www.baidu.com"))
But the running result met an error:
pkt=Ether()/IP(src=srcip)/UDP()/DNS(aa=1,qd=DNSQR(qname="www.baidu.com"))
NameError: global name 'DNS' is not defined
Does that mean it not support scapy to build dns packet?
Is there any solution to fix it ?
--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/32a0b252-7ffa-44bb-9030-9b365d3795f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/CAJysGCTTkbpqTQLy2dwE9CNiDL3HA%3DWMg4UEFp-d_G1jwRHFww%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/3eb5b657-0c8d-47a0-bc08-942b260cca9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.