3

i'm simulating a simple DNS Server in JAVA (using UDP). I've done DNS Request parsing and sending back response to the client. i'm using DIG command in shell for testing. i've this problem here :

In wireshark, when i start monitoring packets on Loopback , it detects DNS request and response packets as Malformed ENIP packets. I'm a beginner, please guide on how to resolve this issue. Thanks in advance.

enter image description here

enter image description here

Adeel Ahmad
  • 990
  • 8
  • 22

1 Answers1

3

Why is the Wireshark not detecting DNS packet?

Because you're not using a standard DNS port, and Wireshark only recognizes DNS by port number. You'll have to use the "Decode As..." menu item in the "Analyze" menu to tell it to decode port 2222 traffic as DNS. You will also need to disable the ENIP dissector, as it dissects traffic to and from port 2222.