static Record
fromWire(DNSInput in, int section, boolean isUpdate) throws IOException {
	int type, dclass;
	long ttl;
	int length;
	Name name;
	Record rec;

	name = new Name(in);
	type = in.readU16();
	dclass = in.readU16();

	if (section == Section.QUESTION)
		return newRecord(name, type, dclass);

	ttl = in.readU32();
	length = in.readU16();
	if (length == 0 && isUpdate &&
	    (section == Section.PREREQ || section == Section.UPDATE))
		return newRecord(name, type, dclass, ttl);
	rec = newRecord(name, type, dclass, ttl, length, in);
	return rec;
}
Creates a new empty record, with the given parameters.  This method is
designed to create records that will be added to the QUERY section
of a message.
@param name The owner name of the record.
@param type The record's type.
@param dclass The record's class.
@return An object of a subclass of Record
src/main/java/core/org/xbill/DNS/Record.java