DEV Community

Gurpinder Singh
Gurpinder Singh

Posted on

How to adding a TXT record to your DNS settings

Welcome to Dgihost,

When adding a TXT record to your DNS settings, you generally need to fill out the following fields:

Type: This should be set to TXT since you’re adding a TXT record.
Name: This field usually specifies the subdomain or domain the TXT record applies to. For domain verification with Google Search Console, this is often left blank or set to @, which represents the root domain. If you are verifying a subdomain (like sub.example.com), you would put sub here.
Content: This is where you paste the TXT record value provided by Google Search Console.
TTL: This stands for "Time To Live" and determines how long the record is cached. The default value is usually fine (e.g., 3600 seconds, which is 1 hour).

Example for a Root Domain

Type: TXT
Name: @ (or leave blank if @ is not accepted)
Content: google-site-verification=your_verification_code_here
TTL: 3600 (or use the default setting)

Example for a Subdomain

If you are verifying a subdomain, for instance, sub.example.com:

Type: TXT
Name: sub
Content: google-site-verification=your_verification_code_here
TTL: 3600 (or use the default setting)

Final Steps

After saving the record, go back to Google Search Console and click the “Verify” button to complete the verification process.

Keep in mind that DNS changes might take some time to propagate, so if verification doesn’t work immediately, wait a bit and try again.

If you're still having trouble, providing details about where you're making these changes (like your DNS provider) can help in giving more specific advice.

Thanks,
Dgihost.com

Top comments (0)