If these multiple records implement a certain standard, it can be illegal depending on that particular standard. However, in general, it is legal to have multiple TXT DNS records.