{"id":712,"date":"2019-06-04T10:15:36","date_gmt":"2019-06-04T09:15:36","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=712"},"modified":"2019-05-17T10:40:44","modified_gmt":"2019-05-17T09:40:44","slug":"check-dns-with-dig-command","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/check-dns-with-dig-command\/","title":{"rendered":"Check DNS with DIG command"},"content":{"rendered":"<p><strong>General Query<\/strong><\/p>\n<pre class='wp-code-highlight prettyprint'><span style=\"color: #0000ff;\">dig @ns2.dnsserver.com TXT domain.com +short\u00a0\u00a0 \r\n<\/span><\/pre>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">With the <span style=\"color: #0000ff;\">+short<\/span> it will show only the value of the queried field(s). Without <span style=\"color: #0000ff;\">+short<\/span>\u00a0 it will show the full result<\/span><br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Querying CNAME records\u00a0<\/strong><\/p>\n<pre class='wp-code-highlight prettyprint'><span style=\"color: #0000ff;\">dig @ns2.dnsserver.com CNAME 4xugchxxxxxxxxxxxxxxxxxx3eread3uc._domainkey.domain.com +short<\/span><\/pre>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">This will return the value of that particular CNAME field<\/span>.<br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Querying particular entry<\/strong><\/p>\n<pre class='wp-code-highlight prettyprint'><span style=\"color: #0000ff;\">dig @ns2.dnsserver.com TXT domain.com +short<\/span>\r\n<span style=\"color: #0000ff;\">dig @ns2.dnsserver.com NS domain.com +short<\/span><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>General Query dig @ns2.dnsserver.com TXT domain.com +short\u00a0\u00a0 With the +short it will show only the value of the queried field(s). Without +short\u00a0 it will show the full result &nbsp; Querying CNAME records\u00a0 dig @ns2.dnsserver.com CNAME 4xugchxxxxxxxxxxxxxxxxxx3eread3uc._domainkey.domain.com +short This will return the value of that particular CNAME field. &nbsp; Querying particular entry dig @ns2.dnsserver.com TXT domain.com&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/miscellaneous\/check-dns-with-dig-command\/\">Continue reading <span class=\"screen-reader-text\">Check DNS with DIG command<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[201,200,136,132,134,207],"class_list":["post-712","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","tag-bind","tag-bind9","tag-dig","tag-dns","tag-dns-check","tag-dns-diagnostic","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=712"}],"version-history":[{"count":1,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/712\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/712\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}