added RECORD_TYPE to print ip statement'