diff options
author | Rene Treffer <treffer@measite.de> | 2014-07-23 21:53:38 +0200 |
---|---|---|
committer | Rene Treffer <treffer@measite.de> | 2014-07-23 21:55:16 +0200 |
commit | 70d403f0b612f6cb26b8fc194e35c622c5383167 (patch) | |
tree | e2ccf8f9415cb7515fb24e53f4498b200d635df2 /src/main | |
parent | b0f8bec1cbfa6d21e0873c63d5213bd12d429bd8 (diff) |
Better / more verbose toString
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/measite/minidns/DNSMessage.java | 5 | ||||
-rw-r--r-- | src/main/java/de/measite/minidns/Question.java | 5 |
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 01c09645..ab2535ce 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 62862251..88300356 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; + } } |