General Query dig @ns2.dnsserver.com TXT domain.com +short With the +short it will show only the value of the queried field(s). Without +short it will show the full result Querying CNAME records dig @ns2.dnsserver.com CNAME 4xugchxxxxxxxxxxxxxxxxxx3eread3uc._domainkey.domain.com +short This will return the value of that particular CNAME field. Querying particular entry dig @ns2.dnsserver.com TXT domain.com… Continue reading Check DNS with DIG command
Tag: dns
Bind server not responding to external queries
Recently I ran into a problem where one DNS server setup using Bind9 was not responding to external queries. systemctl status bind9 –no-pager –full shows “Denied“ Common issues (listed below) that can cause the problem were not there. Bind9 was running properly The server was listening on both IPv4 and IPv6 Port 53 was open… Continue reading Bind server not responding to external queries
Manually adding a DNS Zone to Bind9 server
Create a Zone file in /etc/bind/ Example – /etc/bind/pri.domain.com Add the entries . Example below $TTL 3600 @ IN SOA ns2.dnserver.net. manish.gmail.com. ( 2019051606 ; serial, todays date + todays serial # 7200 ; refresh, seconds 540 ; retry, seconds 604800 ; expire, seconds 3600 ) ; minimum, seconds ; domain.com. 3600 A xxx.xxx.xxx.xxx mail… Continue reading Manually adding a DNS Zone to Bind9 server
Good DNS Query Tools
Check CNAME or TXT records
If the CNAME or TXT records are not displayed with normally available online tools, then they can be found using dig TXT _axxxxxxxs.kolkataonweb.com +short OR dig CNAME 4xxxxxxxxxxxxxxxxxc._domainkey.kolkataonweb.com +short (mention the keys that you want to lookup) If everything is fine then the answer section will return the record (like below) ;; ANSWER SECTION: xxxxxxxxxxxx… Continue reading Check CNAME or TXT records