In v 2.1.8 the following dig command causes an exception to be thrown in Name.java:385
dig warnerbros.com a +tcp
I'm using pcap4j to capture packets on the wire.
here's output I produce when the situation happens. It only happens with tcp and not 100% of the time.
2017-07-17 10:28:41 WARNING gotPacket: Not processing packet because it couldn't be parsed as a dns message:
Transport type: org.pcap4j.packet.TcpPacket
[SrcIP]:SrcPort: [151.116.17.28]:53
[DstIP]:DstPort: [10.1.188.28]:54947
Exception message: bad label type
Full Packet Hex:
00000000 B4 B5 2F B1 DC F4 00 06 2A 8B A8 0A 08 00 45 00 ../.....*.....E.
00000010 00 6A 46 18 40 00 3C 06 89 C8 97 74 11 1C 0A 01 .jF.@.<....t....
00000020 BC 1C 00 35 D6 A3 78 6D 00 7C 83 F8 08 CC 50 18 ...5..xm.|....P.
00000030 00 73 96 70 00 00 00 40 7C 85 81 80 00 01 00 02 .s.p...@|.......
00000040 00 00 00 00 0A 77 61 72 6E 65 72 62 72 6F 73 03 .....warnerbros.
00000050 63 6F 6D 00 00 01 00 01 C0 0C 00 01 00 01 00 00 com.............
00000060 00 10 00 04 34 58 02 1E C0 0C 00 01 00 01 00 00 ....4X..........
00000070 00 10 00 04 34 58 E1 7F ....4X..
IP Packet Hex:
00000000 45 00 00 6A 46 18 40 00 3C 06 89 C8 97 74 11 1C E..jF.@.<....t..
00000010 0A 01 BC 1C 00 35 D6 A3 78 6D 00 7C 83 F8 08 CC .....5..xm.|....
00000020 50 18 00 73 96 70 00 00 00 40 7C 85 81 80 00 01 P..s.p...@|.....
00000030 00 02 00 00 00 00 0A 77 61 72 6E 65 72 62 72 6F .......warnerbro
00000040 73 03 63 6F 6D 00 00 01 00 01 C0 0C 00 01 00 01 s.com...........
00000050 00 00 00 10 00 04 34 58 02 1E C0 0C 00 01 00 01 ......4X........
00000060 00 00 00 10 00 04 34 58 E1 7F ......4X..
Transport Packet Hex:
00000000 00 35 D6 A3 78 6D 00 7C 83 F8 08 CC 50 18 00 73 .5..xm.|....P..s
00000010 96 70 00 00 00 40 7C 85 81 80 00 01 00 02 00 00 .p...@|.........
00000020 00 00 0A 77 61 72 6E 65 72 62 72 6F 73 03 63 6F ...warnerbros.co
00000030 6D 00 00 01 00 01 C0 0C 00 01 00 01 00 00 00 10 m...............
00000040 00 04 34 58 02 1E C0 0C 00 01 00 01 00 00 00 10 ..4X............
00000050 00 04 34 58 E1 7F ..4X..
I'm not seeing an exception, and there's nothing in the response packets here that would cause problems.
If you still think this is an issue/use case, please create a pull request on dnsjava's new home at Github: https://github.com/dnsjava/dnsjava