Skip to content

Commit 4e16946

Browse files
author
bwelling
committed
better printing of AXFR failure
git-svn-id: http://svn.code.sf.net/p/dnsjava/code/trunk@444 c76caeb1-94fd-44dd-870f-0c9d92034fc1
1 parent 9bdab1f commit 4e16946

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dig.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ public class dig {
2929
doAXFR(Message response) throws IOException {
3030
System.out.println("; java dig 0.0 <> " + name + " axfr");
3131

32+
if (response.getRcode() != Rcode.NOERROR) {
33+
System.out.println(response);
34+
return;
35+
}
36+
3237
Enumeration e = response.getSection(Section.ANSWER);
3338
while (e.hasMoreElements())
3439
System.out.println(e.nextElement());

0 commit comments

Comments
 (0)