Returns the OPT record from the ADDITIONAL section, if one is present. @see OPTRecord @see Section
()
| 313 | * @see Section |
| 314 | */ |
| 315 | public OPTRecord |
| 316 | getOPT() { |
| 317 | Record [] additional = getSectionArray(Section.ADDITIONAL); |
| 318 | for (int i = 0; i < additional.length; i++) |
| 319 | if (additional[i] instanceof OPTRecord) |
| 320 | return (OPTRecord) additional[i]; |
| 321 | return null; |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Returns the message's rcode (error code). This incorporates the EDNS |
no test coverage detected