added homework copy of dnsmessage