Removed DNS events; Separated message encoding from sending