Convert the utility functions to class structure and C++ style.
Convert mdns_record and mdns_a_record to C++ classes.
Add in the serialize/encode methods.
Add body for toString() method and a public method for instantiating a_record.