aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorRene Treffer <treffer@measite.de>2014-07-23 21:53:38 +0200
committerRene Treffer <treffer@measite.de>2014-07-23 21:55:16 +0200
commit70d403f0b612f6cb26b8fc194e35c622c5383167 (patch)
treee2ccf8f9415cb7515fb24e53f4498b200d635df2 /src/main
parentb0f8bec1cbfa6d21e0873c63d5213bd12d429bd8 (diff)
Better / more verbose toString
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/measite/minidns/DNSMessage.java5
-rw-r--r--src/main/java/de/measite/minidns/Question.java5
2 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/de/measite/minidns/DNSMessage.java b/src/main/java/de/measite/minidns/DNSMessage.java
index 01c096450..ab2535ce1 100644
--- a/src/main/java/de/measite/minidns/DNSMessage.java
+++ b/src/main/java/de/measite/minidns/DNSMessage.java
@@ -515,7 +515,10 @@ public class DNSMessage {
public String toString() {
return "-- DNSMessage " + id + " --\n" +
- Arrays.toString(answers);
+ "Q" + Arrays.toString(questions) +
+ "NS" + Arrays.toString(nameserverRecords) +
+ "A" + Arrays.toString(answers) +
+ "ARR" + Arrays.toString(additionalResourceRecords);
}
}
diff --git a/src/main/java/de/measite/minidns/Question.java b/src/main/java/de/measite/minidns/Question.java
index 628622510..883003561 100644
--- a/src/main/java/de/measite/minidns/Question.java
+++ b/src/main/java/de/measite/minidns/Question.java
@@ -134,4 +134,9 @@ public class Question {
byte o[] = ((Question)other).toByteArray();
return Arrays.equals(t, o);
}
+
+ @Override
+ public String toString() {
+ return "Question/" + clazz + "/" + type + ": " + name;
+ }
}