txt records are DNS record where any text value can be stored.
They are used for multiple purposes such as:
For instance, if we want to know:
you would DNS query the database record with nslookup and the following command:
nslookup -type=TXT google.com ns2.google.com