{"id":876,"date":"2018-07-04T08:28:01","date_gmt":"2018-07-04T06:28:01","guid":{"rendered":"http:\/\/itsimple.info\/?p=876"},"modified":"2018-07-04T08:28:01","modified_gmt":"2018-07-04T06:28:01","slug":"dcdiag-testdns-return-no-host-records-a-or-aaaa-were-found-for-this-dc-or-cant-read-os-version-through-wmi","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=876","title":{"rendered":"DCDIAG \/test:dns return &#8220;No host records (A or AAAA) were found for this DC&#8221; or &#8220;Can&#8217;t read OS version through WMI&#8221;"},"content":{"rendered":"<p>When running NSLOOKUP against dc dns you might get error and the dns stop resolving records, local and internet. When running dcdiag \/test:dns you might get errors like this:<\/p>\n<pre>Running enterprise tests on : domain.com\r\n \u00a0\u00a0\u00a0 Starting test: DNS\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Test results for domain controllers:\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DC: SERVER.Domain.com\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Domain: Domain.com\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TEST: Basic (Basc)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Error: Can't read OS version through WMI\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 No host records (A or AAAA) were found for this DC\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Summary of DNS test results:\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Auth Basc Forw Del\u00a0 Dyn\u00a0 RReg Ext\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 _________________________________________________________________\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Domain: Domain.com\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SERVER\u00a0 PASS FAIL n\/a\u00a0 n\/a\u00a0 n\/a\u00a0 n\/a\u00a0 n\/a\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ......................... domain.com failed test DNS<\/pre>\n<p>To fix the DNS functionality try this steps, first try to rest the DNS cache:<\/p>\n<pre>net stop netlogon\r\nnet stop dns\r\nDNSCMD ServerName \/clearcache\r\nAfter that, please rename the following two files  located in the Windows\\System32\\Config:\r\n1) netlogon.dmb to netlogon.dmb.old\r\n2) netlogon.dns to netlogon.dns.old\r\nThen, please run the following commands:\r\nnet start netlogon\r\nnet start dns\r\nipconfig \/registerdns<\/pre>\n<p><strong>Test the dns with nslookup :<br \/>\n<\/strong><\/p>\n<pre>from the CMD run nslookup \"Your DC Name\"  or nslookup google.com<\/pre>\n<p>If that didn&#8217;t work try reseting the WMI repository, First run:<\/p>\n<pre>winmgmt \/verifyrepository<\/pre>\n<p>If the repository is in a consistent state I would recommend to stop and look for another solution how ever to reset the repository you can try :<\/p>\n<pre>Winmgmt \/salvagerepository<\/pre>\n<p>That will take the content of the inconsistent repository and merge it into the rebuilt repository if it is readable, If this failed the try :<\/p>\n<pre>Winmgmt \/resetrepository<\/pre>\n<p>*. I have seen cases thet the WMI service can not be stopped, pausing the service will help as well \ud83d\ude42<\/p>\n<p>That will reset repository to the initial state when the OS was first installed . More information about resetting the WMI can be found <strong><a href=\"https:\/\/blogs.technet.microsoft.com\/askperf\/2009\/04\/13\/wmi-rebuilding-the-wmi-repository\/\">here<\/a><\/strong><\/p>\n<p>Then reboot the server !<\/p>\n<hr \/>\n<h3>Good Luck<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>When running NSLOOKUP against dc dns you might get error and the dns stop resolving records, local and internet. When running dcdiag \/test:dns you might get errors like this: Running enterprise tests on : domain.com \u00a0\u00a0\u00a0 Starting test: DNS \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Test results for domain controllers: \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DC: SERVER.Domain.com \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Domain: Domain.com \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TEST: Basic (Basc) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,15],"tags":[],"class_list":["post-876","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=876"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/876\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}