Convert srv_record and txt_record to C++ classes.