{"id":928,"date":"2012-10-10T22:32:31","date_gmt":"2012-10-10T22:32:31","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=928"},"modified":"2012-10-10T22:32:31","modified_gmt":"2012-10-10T22:32:31","slug":"10-ways-to-troubleshoot-dns-resolution-issues","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=928","title":{"rendered":"10 Ways to Troubleshoot DNS Resolution Issues"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>We all need proper DNS resolution for our network applications. When it this is not working, what do you do? Let us find out\u2026<\/p>\n<p>Let\u2019s face it, when DNS resolution is not working, using anything on  your computer that has to do with networking is painful because there is  good chance it will not work. DNS really is not a \u201cnice feature\u201d of a  network, it is a requirement. As a network admin, I have heard the  alarming cry of end users moaning that the network is down, when it  would be the cause of the DNS servers. In these cases I assure them that  the network is up and running fine but it is the DNS servers that are  down! As you can imagine, that does not go over very well with them  because to an end user, it is all the same thing. DNS is \u201cthe network\u201d  (not that they know what DNS is anyway).<\/p>\n<p>So how do you troubleshoot this critical network infrastructure  service when you are on an end user PC (or your PC) and DNS is not  resolving a DNS name? Here are the 10 tips and tricks that I recommend  you try to get DNS working again\u2026<\/p>\n<h2>1. Check for network connectivity<\/h2>\n<p>Many times, if you open  your web browser, go to a URL, and that URL fails to bring up a website,  you might erroneously blame DNS. In reality, the issue is much more  likely to be caused by your network connectivity. This is especially  true if you are using wireless networking on a laptop. With wireless  security protocols, the key will be periodically renegotiated or the  signal strength will fade, causing a loss of network connectivity. Of  course, you can lose network connectivity on any type of network.<\/p>\n<p>In other words, before blaming DNS for your problems, start  troubleshooting by checking \u201cOSI Layer 1 \u2013 Physical\u201d first and then  check your network connectivity. Here you should find a wireless  connection with a valid Internet connection.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0021244573867828.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><br \/>\n<strong>Figure 1:<\/strong> Good Wireless Network Connection<\/p>\n<p>Notice how the <strong>Access<\/strong> is <strong>Local and Internet<\/strong>. If it just  said \u201cLocal\u201d then you do not have a valid network address (you only  have a private APIPA that starts with 169.x.x.x).<\/p>\n<p>This brings me to my next point. Make sure that you have a valid IP address on your network. You can check this out by going to <strong>View Status<\/strong> on the screen above and then to <strong>Details<\/strong>,  you can check your IP address and verify your DNS Server IP addresses.  Again, if you have a 169.x.x.x IP address you will never get to the  Internet. Here is what it looks like:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0041244573867843.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><br \/>\n<strong>Figure 2:<\/strong> Verifying your IP address and DNS Server IP addresses<\/p>\n<h2>2. Verify your DNS server IP addresses are correct and in order<\/h2>\n<p>Once  you know that you have network connectivity and a valid IP address, let  us move on to digging deeper into DNS by verifying that your DNS Server  IP addresses are correct and are in the right order.<\/p>\n<p>If you look at <strong>Figure 2<\/strong> above, you can see the <strong>IPv4 DNS Server <\/strong>IP  addresses. Notice that these are both on my local LAN \/ subnet so that I  can access them even if my default gateway is down. This is how it  works on most enterprise networks. However, your DNS servers do not  always have to be on your subnet. In fact, with most ISPs, the DNS  Server IPs would not even be on the same subnet as the default gateway.<\/p>\n<p>In most home\/SMB router configurations, they do not have their own  DNS servers and the SMB router is proxying DNS to the real DNS Servers.  In that case, your DNS Server IP address may be the same as your router.<\/p>\n<p>Finally, make sure that your DNS Servers are in the right order. In my case, with the graphic in <strong>Figure 2<\/strong>,  my local DNS Server is 10.0.1.20. It is configured to forward any names  that it cannot resolve to 10.0.1.1, my local router. That router is  proxying DNS to my ISP\u2019s DNS Servers. I can look up those DNS Servers on  my router, shown below in <strong>Figure 3<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0061244573867843.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><br \/>\n<strong>Figure 3:<\/strong> My local DNS Servers, received from my ISP via DHCP<\/p>\n<p>That brings me to two more points. First, make sure that your DNS  Servers are in the right order. If you have a local DNS Server, like I  do, and you are looking up a local DNS name, you want your PC client to  lookup that local DNS name in the local DNS Server FIRST, before the  Internet DNS Server. Thus, your local DNS server needs to be first in  your DNS settings as these DNS Server IPs are in the order that they  will be used.<\/p>\n<p>Secondly, you should be able to ping the IP address of your ISP\u2019s DNS  Servers. So, just as my DNS servers are listed above on my router, I  can verify that I can ping them even from my local PC:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0081244574026375.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><br \/>\n<strong>Figure 4:<\/strong> Pinging my ISP\u2019s DNS Server<\/p>\n<p>Notice how the response time from the ping to my ISP\u2019s DNS Server is  horrible. This could cause slow DNS lookups or even failure if it takes  too long for the DNS server to respond.<\/p>\n<h2>3. Ping the IP address of the host you are trying to get to (if it is known)<\/h2>\n<p>A  quick way to prove that it is a DNS issue and not a network issue is to  ping the IP address of the host that you are trying to get to. If the  connection to the DNS name fails but the connection to the IP address  succeeds, then you know that your issue has to do with DNS.<\/p>\n<p>I know that if your DNS Server is not functioning then it could be  hard to figure out what the IP address is that you want to connect to.  Thus, to carry out this test, you would have to have a network diagram  or, like many network admins do, just have the IP address of a common  host memorized.<\/p>\n<p>If this works, until the DNS server is available again, you could manually put an entry in your <strong>hosts<\/strong> file to map the IP to the hostname.<\/p>\n<h2>4. Find out what DNS server is being used with nslookup<\/h2>\n<p>You can use the <strong>nslookup<\/strong> command to find out a ton of information about your DNS resolution. One  of the simple things to do is to use it to see what DNS server is  providing you an answer and which DNS server is NOT. Here is my nslookup  of <a href=\"http:\/\/www.windowsnetworking.com\/\">www.WindowsNetworking.com<\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0101244574026375.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><br \/>\n<strong>Figure 5: <\/strong>nslookup output<\/p>\n<p>Notice, in <strong>Figure 5,<\/strong> how my local DNS server failed to respond  but my ISP\u2019s DNS server did provide me a \u201cnon-authoritative answer\u201d,  meaning that it does not host the domain but can provide a response.<\/p>\n<p>You can also use nslookup to compare the responses from different DNS servers by manually telling it which DNS server to use.<\/p>\n<h2>5.\u00a0Check your DNS suffix<\/h2>\n<p>If you are looking up a local host  on a DNS server that your PC is a member of, you might be connecting to a  host and not using the FQDN (fully qualified DNS name) and counting on  the DNS suffix to help out. For example, if I were to connect to <strong>\u201cserver1\u201d<\/strong>, the DNS server could have multiple entries for that DNS name. You should have your network adaptor configured with the <strong>connection specific DNS suffix<\/strong>, as shown on the first line on the graphic above, labeled <strong>Figure 1. <\/strong>Notice how in that graphic my DNS suffix is <strong>wiredbraincoffee.com<\/strong>. Whenever I enter just a DNS name like <strong>server1<\/strong>, the DNS suffix will be added on the end of it to make it <strong>server1.wiredbraincoffee.com<\/strong>.<\/p>\n<p>You should verify that your DNS suffix is correct.<\/p>\n<h2>6.\u00a0Make sure that your DNS settings are configured to pull the DNS IP from the DHCP server<\/h2>\n<p>It  is likely that you would want your network adaptor to obtain DNS Server  IP addresses from the DHCP Server.\u00a0 If you look at the graphic below,  this adaptor has manually specified DNS Server IP addresses.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.windowsnetworking.com\/img\/upl\/image0121244574026390.jpg\" border=\"0\" alt=\"\" hspace=\"0\" align=\"bottom\" \/><br \/>\n<strong>Figure 6: <\/strong>Verify DNS Server Settings<\/p>\n<p>You may need to change to \u201c<strong>Obtain DNS server address automatically\u201d<\/strong> in order to get a new DNS server IP. To do this, open the <strong>Properties <\/strong>tab of your network adaptor and then click on <strong>Internet Protocol Version 4 (TCP\/IPv4).<\/strong><\/p>\n<h2>7.\u00a0Release and renew your DHCP Server IP address (and DNS information)<\/h2>\n<p>Even  if your adaptor is set to pull DNS information from DHCP, It is  possible that you have an IP address conflict or old DNS server  information. After choosing to obtain the IP and DNS info automatically,  I like to release my IP address and renew it.<\/p>\n<p>While you can do this with a Windows Diagnosis in your network  configuration, I like to do it in the command prompt. If you have UAC  enabled, make sure you run the Windows cmd prompt as administrator then  do:<\/p>\n<p><strong>IPCONFIG \/RELEASE<\/strong><\/p>\n<p><strong>IPCONFIG \/RENEW<\/strong><\/p>\n<p>Then, do an <strong>IPCONFIG \/ALL<\/strong> to see what your new IP and DNS Server info looks like.<\/p>\n<h2>8.\u00a0Check the DNS Server and restart services or reboot if necessary<\/h2>\n<p>Of  course, if the DNS server is really hung, or down, or incorrectly  configured, you are not going to be able to fix that at the client side.  You may be able to bypass the down server somehow, but not fix it.<\/p>\n<p>Thus, it is very likely that you, or the admin responsible for the  DNS server, need to check the DNS Server status and configuration to  resolve your DNS issue.<\/p>\n<h2>9. Reboot your small office \/ home DNS router<\/h2>\n<p>As I mentioned above in <strong>#2<\/strong> and showed in <strong>Figure 3<\/strong>,  on home and small office routers, the DNS server settings are typically  handed out via DHCP with the DNS server set to the IP of the router and  the router will proxy the DNS to the ISP\u2019s DNS server.<\/p>\n<p>Just as it is possible that your local PC has network info (including  DNS server IP Addresses), it is also possible that your router has bad  info. To ensure that your router has the latest DNS server information,  you may want to do a DHCP release and renew on the router\u2019s WAN  interface with the ISP. Or, the easier option may be just to reboot the  router to get the latest info.<\/p>\n<h2>10.\u00a0Contact your ISP<\/h2>\n<p>We all know how painful it can be to  contact an ISP and try to resolve a network issue. Still, if your PC is  ultimately getting DNS resolution from your ISP\u2019s DNS servers, you may  need to contact the ISP, as a last resort.<\/p>\n<h2>Summary<\/h2>\n<p>DNS resolution is a critical piece of our network infrastructure and it  must work properly for our network applications to function. In this  article, I have given you 10 different ways to troubleshoot DNS  resolutions issues, hope they are useful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction We all need proper DNS resolution for our network applications. When it this is not working, what do you do? Let us find out\u2026 Let\u2019s face it, when DNS resolution is not working, using anything on your computer that has to do with networking is painful because there is good chance it will not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-928","post","type-post","status-publish","format-standard","hentry","category-domain-name-system-dns"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=928"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions"}],"predecessor-version":[{"id":930,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions\/930"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}