Add method to get byte array of a dns message