Within cPanel, click on Zone Editor
Click on Manage at the domain for which you want to add a TXT record
Click the arrow next to Add Record to open the drop-down menu and select Add "TXT" Record
Under Name , enter the domain name, eg example.com.
Under Record , enter the contents of the TXT record you received, and click on Save Record .
In case you want to set a DMARC TXT record, you need to enter _dmarc .example.com under Name .