diff --git a/library/src/main/java/com/qiniu/android/dns/dns/DnsResponse.java b/library/src/main/java/com/qiniu/android/dns/dns/DnsResponse.java index 2479033..efe1c22 100644 --- a/library/src/main/java/com/qiniu/android/dns/dns/DnsResponse.java +++ b/library/src/main/java/com/qiniu/android/dns/dns/DnsResponse.java @@ -201,8 +201,7 @@ private String readData(int recordType, int from, int length) throws IOException StringBuilder builder = new StringBuilder(); for (int i = 0; i < 16; i += 2) { builder.append(i > 0 ? ":" : ""); - builder.append(readRecordDataInt8(from + i)); - builder.append(readRecordDataInt8(from + i + 1)); + Integer.toHexString(readRecordDataInt16(from + i)); } dataString = builder.toString(); }