0% found this document useful (0 votes)
173 views

Add TXT Record To Bind9 DNS Record For Google Site Verification On Debian - Wwsims Corp

This article provides instructions for adding a TXT record to a Bind9 DNS configuration on a Debian server for Google site verification. It is a very simple process that involves checking for DNS configuration errors, editing the domain DNS zone file to add the TXT record, increasing the version number, and reloading Bind9. Testing the configuration with an online tool then verifies the new TXT record is added correctly.

Uploaded by

nettobrasil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
173 views

Add TXT Record To Bind9 DNS Record For Google Site Verification On Debian - Wwsims Corp

This article provides instructions for adding a TXT record to a Bind9 DNS configuration on a Debian server for Google site verification. It is a very simple process that involves checking for DNS configuration errors, editing the domain DNS zone file to add the TXT record, increasing the version number, and reloading Bind9. Testing the configuration with an online tool then verifies the new TXT record is added correctly.

Uploaded by

nettobrasil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

03/07/2023, 09:38 Add TXT record to bind9 DNS record for google site verification on Debian | wwSims Corp.

wwSims Corp.
Serving your IT and business needs

Add TXT record to bind9 DNS record for google site


verification on Debian
Posted on June 16, 2020

Difficulty: 1/5 – It is very easy to do, you just need to follow few simple steps.

For the purposes of this article, your DNS has already been configured and your server/domain is accessible. You just need to add Google (or
any other provider) Apps TXT verification to your DNS zone file. Replace any “domainname.com” occurences with your domain name and
“111.222.333.444” with your server’s IP.

First, test bind configuration for errors to make sure everything is working fine and you are not introducing new code to a faulty system –
makes it hard to debug any problems that may arise.

# named-checkconf /etc/named.conf

You get no messages if everything is working as it should.


Now open for editing your domainname.com DNS record file:

# nano /var/cache/bind/db.domainname.com

wwsims.com/index.php/2020/06/16/add-txt-record-to-bind9-dns-record-for-google-site-verification-on-debian/ 1/3
03/07/2023, 09:38 Add TXT record to bind9 DNS record for google site verification on Debian | wwSims Corp.
Make sure you increase version number by 1. Standard is to use today’s date “YYYYMMDD” followed by two digit version number “01” for that
day. For example, third edit on 2020 June 16th will result in 2020061603. Tomorrow you start at 2020061701
Add TXT record at the end of the file:

$ORIGIN .
$TTL 3600       ; 1 hour
domainname.com  IN      SOA     ns1.domainname.com. root.domainname.com. (
                         2020061603
                         10800
                         3600
                         604800
                         86400 )
                         NS      ns1.domainname.com.
                         NS      ns3.domainname.com.
                         NS      ns4.domainname.com.
                         A       111.222.333.444
                         MX      10      mx.google.com.
                         MX      20      mx2.google.com.
$ORIGIN domainname.com.
www                     A       111.222.333.444
*                       IN      CNAME   domainname.com.
@               IN      TXT     "google-site-verification=xxxxx-xxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxx"


Save the file and reload bind:

# service bind9 reload

Now test your configuration using one of the tools available online like the one from UltraTools. Enter your domainname.com and you will see
new record in TXT section. Now you are ready to verify with Google Apps.

Useful external links. Checked as working when this post has been made.
Debian Bind9 documentation
How to check DNS files for errors
Wiki – TXT records
UltraTools – DNS Lookup Result
mx Supertool

SHAR E T HIS:

wwsims.com/index.php/2020/06/16/add-txt-record-to-bind9-dns-record-for-google-site-verification-on-debian/ 2/3
03/07/2023, 09:38 Add TXT record to bind9 DNS record for google site verification on Debian | wwSims Corp.

  
This entry was posted in Uncategorised and tagged bind9, Debian, DNS, TXT, verification by Tadas. Bookmark the permalink
[http://wwsims.com/index.php/2020/06/16/add-txt-record-to-bind9-dns-record-for-google-site-verification-on-debian/] .

wwsims.com/index.php/2020/06/16/add-txt-record-to-bind9-dns-record-for-google-site-verification-on-debian/ 3/3

You might also like