{"id":50309,"date":"2026-06-23T16:11:18","date_gmt":"2026-06-23T10:41:18","guid":{"rendered":"https:\/\/www.milesweb.in\/blog\/?p=50309"},"modified":"2026-06-23T16:11:19","modified_gmt":"2026-06-23T10:41:19","slug":"dns-commands-for-windows","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/","title":{"rendered":"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues"},"content":{"rendered":"\n<p>Imagine typing a website address into your browser, expecting the page to load instantly, only to encounter the message, \u201cThis site can\u2019t be reached.\u201d In many cases, the website itself is functioning perfectly\u2014the real reason for this is the DNS.<\/p>\n\n\n\n<p>Let&#8217;s decode this.<\/p>\n\n\n\n<p>The Domain Name System (DNS) is similar to an Internet phone book. It provides the user with an easy-to-remember <a href=\"https:\/\/www.milesweb.in\/domains\/\">domain name<\/a>, which is converted into an IP address that computers use to communicate with one another. When DNS is not operating properly, website pages load incorrectly, e-mail doesn&#8217;t reach the recipient, and servers fail to create connections to one another on a network.<\/p>\n\n\n\n<p>Fortunately, Windows provides many built-in command-line tools that help diagnose and repair DNS-related issues in minutes. Although the GUI allows basic configuration, Command Prompt and PowerShell provide more detailed information.<\/p>\n\n\n\n<p>In this detailed blog, we will walk through the most commonly used DNS commands for Windows, including DNS configuration settings, testing domain name resolution, viewing and <a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/clear-local-dns-cache-windows\/\">clearing your DNS cache<\/a>, verifying DNS records, and troubleshooting common connectivity and troubleshooting the common connectivity issues.<\/p>\n\n\n\n<p>Regardless of whether you own a website, are a system administrator, or are a developer, these commands will assist you in diagnosing your DNS problems so that you can keep your Internet-based services running effectively.<\/p>\n\n\n\n<div class=\"skrlto-container\" style= \"border-radius: 13px;\npadding: 25px;\nbackground: #EEF6FF;\">\n<h2 class=\"skrlto-header-title\">Table Of Content<\/h2>\n<div class=\"skrlto-links-wrapper\">\n<ul>\n<li class=\"skroll-button\" data-skrolllto=\"WPT1WPTheme\">What are Windows DNS commands?<\/li> \n<li class=\"skroll-button\" data-skrolllto=\"WPT2WPTheme\">Why is CMD run as administrator for DNS commands?<\/li>  \n<li class=\"skroll-button\" data-skrolllto=\"WPT3WPTheme\">What is the DNS troubleshooting workflow for Windows?<\/li> \n<li class=\"skroll-button\" data-skrolllto=\"WPT4WPTheme\">Which are the essential DNS commands for Windows?\n<ul class=\"innr-skroll-button\"><\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT5WPTheme\">ipconfig \/all<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT6WPTheme\">nslookup<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT7WPTheme\">nslookup with a Specific DNS Server<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT8WPTheme\">ipconfig \/displaydns<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT9WPTheme\">ipconfig \/flushdns<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT10WPTheme\">ipconfig \/registerdns<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT11WPTheme\">Ping Domain Name<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT12WPTheme\">tracert Domain Name<\/li> \n<\/ul><\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT13WPTheme\">What are advanced DNS record lookup commands?<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT14WPTheme\">How to reset DNS using CMD?<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT15WPTheme\">What are common DNS errors and the commands to fix them?<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT16WPTheme\">What are the best practices when using DNS commands?<\/li>\n<li class=\"skroll-button\" data-skrolllto=\"WPT17WPTheme\">FAQs<\/li>\n<\/ul>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT1WPTheme\">What are Windows DNS commands?<\/h2>\n\n\n\n<p>Windows DNS commands are command-line utilities that allow the user to examine, test, repair, and troubleshoot their DNS configuration. These commands can be used directly rather than surfing multiple pages or tabs to quickly diagnose DNS issues.<\/p>\n\n\n\n<p>Windows includes two main command-line environments for DNS troubleshooting: Command Prompt (CMD) and PowerShell.<\/p>\n\n\n\n<style>\n.cmdps-wrap{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  margin:18px 0;\n}\n\n.cmdps-grid{\n  display:grid;\n  grid-template-columns:1fr 1fr;\n  gap:16px;\n}\n\n@media(max-width:768px){\n  .cmdps-grid{\n    grid-template-columns:1fr;\n  }\n}\n\n.cmdps-card{\n  background:#fff;\n  border:1px solid #dbe4f0;\n  border-radius:14px;\n  overflow:hidden;\n  transition:.2s ease;\n}\n\n.cmdps-card:hover{\n  transform:translateY(-2px);\n  box-shadow:0 8px 20px rgba(0,0,0,.06);\n}\n\n.cmdps-head{\n  padding:12px 16px;\n  font-size:14px;\n  font-weight:700;\n  color:#111827;\n}\n\n.cmd-head{\n  background:#eef5ff;\n  border-bottom:1px solid #dbe4f0;\n}\n\n.ps-head{\n  background:#edf9f0;\n  border-bottom:1px solid #dbe4f0;\n}\n\n.cmdps-body{\n  padding:16px;\n  font-size:14px;\n  line-height:1.7;\n  color:#374151;\n}\n<\/style>\n\n<div class=\"cmdps-wrap\">\n\n  <div class=\"cmdps-grid\">\n\n    <div class=\"cmdps-card\">\n      <div class=\"cmdps-head cmd-head\">\n        \ud83d\udcbb Command Prompt (CMD)\n      <\/div>\n      <div class=\"cmdps-body\">\n        CMD has several classic networking tools (e.g., <strong>ipconfig<\/strong>, <strong>nslookup<\/strong>, and <strong>ping<\/strong>) that are commonly used for checking DNS settings and resolving connectivity problems.\n      <\/div>\n    <\/div>\n\n    <div class=\"cmdps-card\">\n      <div class=\"cmdps-head ps-head\">\n        \u26a1 PowerShell\n      <\/div>\n      <div class=\"cmdps-body\">\n        In contrast, PowerShell has more advanced commands, such as <strong>Resolve-DnsName<\/strong>, that provide detailed record information, automation, and scripting capabilities.\n      <\/div>\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n\n\n<style>\n.dns-cases{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  margin:20px 0;\n}\n\n.dns-card{\n  background:#ffffff;\n  border:1px solid #dbe4f0;\n  border-radius:16px;\n  overflow:hidden;\n  box-shadow:0 2px 10px rgba(0,0,0,.04);\n}\n\n.dns-header{\n  background:#eef5ff;\n  padding:14px 18px;\n  font-size:14px;\n  font-weight:700;\n  color:#1e3a5f;\n  border-bottom:1px solid #dbe4f0;\n}\n\n.dns-list{\n  padding:16px;\n}\n\n.dns-item{\n  display:flex;\n  align-items:flex-start;\n  gap:12px;\n  padding:12px 0;\n  border-bottom:1px solid #edf2f7;\n}\n\n.dns-item:last-child{\n  border-bottom:none;\n}\n\n.dns-icon{\n  width:28px;\n  height:28px;\n  min-width:28px;\n  border-radius:50%;\n  background:#e8f1ff;\n  color:#1d6fd8;\n  display:flex;\n  align-items:center;\n  justify-content:center;\n  font-size:14px;\n  font-weight:700;\n}\n\n.dns-text{\n  font-size:14px;\n  line-height:1.7;\n  color:#374151;\n}\n<\/style>\n\n<div class=\"dns-cases\">\n\n  <div class=\"dns-card\">\n\n    <div class=\"dns-header\">\n      \ud83d\udccc These specific DNS commands will help you resolve your issue:\n    <\/div>\n\n    <div class=\"dns-list\">\n\n      <div class=\"dns-item\">\n        <div class=\"dns-icon\">\u2713<\/div>\n        <div class=\"dns-text\">\n          When a certain domain name cannot be resolved and the internet is connected to that PC.\n        <\/div>\n      <\/div>\n\n      <div class=\"dns-item\">\n        <div class=\"dns-icon\">\u2713<\/div>\n        <div class=\"dns-text\">\n          When a new domain name has been pointed to an existing domain, but it cannot be resolved correctly.\n        <\/div>\n      <\/div>\n\n      <div class=\"dns-item\">\n        <div class=\"dns-icon\">\u2713<\/div>\n        <div class=\"dns-text\">\n          When checking whether or not a newly-created DNS record has propagated.\n        <\/div>\n      <\/div>\n\n      <div class=\"dns-item\">\n        <div class=\"dns-icon\">\u2713<\/div>\n        <div class=\"dns-text\">\n          When email service stops working because of the incorrect configuration of an MX or TXT record.\n        <\/div>\n      <\/div>\n\n      <div class=\"dns-item\">\n        <div class=\"dns-icon\">\u2713<\/div>\n        <div class=\"dns-text\">\n          When connecting a VPS\/dedicated server to the domain or an external service.\n        <\/div>\n      <\/div>\n\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n\n\n<p>Whether you&#8217;re troubleshooting a computer, website, or server, Windows DNS command-line tools help diagnose and resolve DNS issues quickly and efficiently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT2WPTheme\">Why is CMD run as administrator for DNS commands?<\/h2>\n\n\n\n<p>Some DNS commands require the user to have elevated permissions to alter the network configuration, delete the DNS cache, or reset components. To prevent any permission errors, it is strongly recommended that you open a Command Prompt with Administrator privileges before attempting to resolve any DNS issues.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"445\" src=\"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/run-cmd-administrator-for-dns.png\" alt=\"run-cmd-administrator-for-dns\" class=\"wp-image-50313\" srcset=\"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/run-cmd-administrator-for-dns.png 800w, https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/run-cmd-administrator-for-dns-300x167.png 300w, https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/run-cmd-administrator-for-dns-768x427.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1: Launch CMD from the Start menu<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the Start button (or press the Windows key)<\/li>\n\n\n\n<li>Type &#8220;cmd&#8221; or &#8220;command prompt&#8221; in the search box<\/li>\n\n\n\n<li>Right-click on the command prompt and choose &#8220;run as administrator&#8221;<\/li>\n\n\n\n<li>Click &#8220;yes&#8221; when the User Account Control (UAC) prompt displays.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Start CMD with the Run dialogue<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Press Windows + R to open the Run dialogue box.<\/li>\n\n\n\n<li>Type \u201ccmd\u201d<\/li>\n\n\n\n<li>Rather than pressing \u2018enter\u2019, hold down the CTRL and SHIFT keys together, then press \u2018enter\u2019<\/li>\n\n\n\n<li>Approve the User Account Control (UAC) message to start CMD as an administrator.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Method 3: Start CMD with Windows Terminal<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Right-click the Start button (or press Windows + X).<\/li>\n\n\n\n<li>Select &#8220;windows terminal (Admin)&#8221;<\/li>\n\n\n\n<li>Click &#8220;yes&#8221; when prompted.<\/li>\n\n\n\n<li>If the Windows terminal opens with PowerShell as the default type, open a CMD tab.<\/li>\n<\/ol>\n\n\n\n<p>Once you have CMD opened with administrator access, you can perform DNS troubleshooting and repair without encountering any access issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT3WPTheme\">What is the DNS troubleshooting workflow for Windows?<\/h2>\n\n\n\n<p>In situations where websites, email services, or domain resolution stop functioning correctly, users frequently change DNS settings without first diagnosing the root cause of the problem. Instead of that, a better way to work through these potential problems is to implement a structured process of identifying and then troubleshooting.<\/p>\n\n\n\n<p>By following the process below in order, you&#8217;ll be able to determine where your DNS problem lies and apply the appropriate solution without any guesswork.<\/p>\n\n\n\n<style>\n.dns-flow{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  margin:20px 0;\n}\n\n.dns-flow-card{\n  border:1px solid #dbe4f0;\n  border-radius:16px;\n  overflow:hidden;\n  background:#fff;\n}\n\n.dns-flow-header{\n  background:#eef5ff;\n  padding:14px 18px;\n  font-size:14px;\n  font-weight:700;\n  color:#1e3a5f;\n  border-bottom:1px solid #dbe4f0;\n}\n\n.dns-step{\n  display:flex;\n  gap:14px;\n  padding:16px 18px;\n  border-bottom:1px solid #edf2f7;\n}\n\n.dns-step:last-child{\n  border-bottom:none;\n}\n\n.dns-number{\n  width:34px;\n  height:34px;\n  min-width:34px;\n  border-radius:50%;\n  background:#1d6fd8;\n  color:#fff;\n  display:flex;\n  align-items:center;\n  justify-content:center;\n  font-size:13px;\n  font-weight:700;\n}\n\n.dns-content{\n  flex:1;\n}\n\n.dns-title{\n  font-size:14px;\n  font-weight:700;\n  color:#111827;\n  margin-bottom:4px;\n}\n\n.dns-desc{\n  font-size:13.5px;\n  line-height:1.7;\n  color:#4b5563;\n}\n<\/style>\n\n<div class=\"dns-flow\">\n\n  <div class=\"dns-flow-card\">\n\n    <div class=\"dns-flow-header\">\n      \ud83d\udd0d DNS Troubleshooting Workflow\n    <\/div>\n\n    <div class=\"dns-step\">\n      <div class=\"dns-number\">1<\/div>\n      <div class=\"dns-content\">\n        <div class=\"dns-title\">Network configuration verification step<\/div>\n        <div class=\"dns-desc\">\n          Check the current network configuration of your device. Some specific elements include: The IP address, DNS servers, the gateway, and your network adapters.\n        <\/div>\n      <\/div>\n    <\/div>\n\n    <div class=\"dns-step\">\n      <div class=\"dns-number\">2<\/div>\n      <div class=\"dns-content\">\n        <div class=\"dns-title\">DNS server verification step<\/div>\n        <div class=\"dns-desc\">\n          Verify that the DNS servers being utilized by your device are accurate and correspond with the configuration on your device&#8217;s network. If they do not, then you experience problems when attempting to access any domains on the Internet.\n        <\/div>\n      <\/div>\n    <\/div>\n\n    <div class=\"dns-step\">\n      <div class=\"dns-number\">3<\/div>\n      <div class=\"dns-content\">\n        <div class=\"dns-title\">Domain name resolution testing<\/div>\n        <div class=\"dns-desc\">\n          Test whether a domain name resolves to a server IP address. This will help to determine if the reason you are unable to connect to a domain is due to issues with DNS resolution or some other network issue.\n        <\/div>\n      <\/div>\n    <\/div>\n\n    <div class=\"dns-step\">\n      <div class=\"dns-number\">4<\/div>\n      <div class=\"dns-content\">\n        <div class=\"dns-title\">Clear local cache for DNS<\/div>\n        <div class=\"dns-desc\">\n          Clear the local DNS cache entries on your computer for previous configurations. This can be useful following an update made to your DNS configuration, website migration, or change of servers.\n        <\/div>\n      <\/div>\n    <\/div>\n\n    <div class=\"dns-step\">\n      <div class=\"dns-number\">5<\/div>\n      <div class=\"dns-content\">\n        <div class=\"dns-title\">Renew DNS registration<\/div>\n        <div class=\"dns-desc\">\n          Force Windows to notify DNS servers about your device and for Windows to refresh the current DNS information on your system. This is a useful step on business networks, Active Directory environments, and other types of server infrastructure.\n        <\/div>\n      <\/div>\n    <\/div>\n\n    <div class=\"dns-step\">\n      <div class=\"dns-number\">6<\/div>\n      <div class=\"dns-content\">\n        <div class=\"dns-title\">Reset network stack<\/div>\n        <div class=\"dns-desc\">\n          When DNS continues to be an issue after completing the above steps, reset the Winsock settings and other related network parameters to fix any corruption that might be causing connectivity problems.\n        <\/div>\n      <\/div>\n    <\/div>\n\n    <div class=\"dns-step\">\n      <div class=\"dns-number\">7<\/div>\n      <div class=\"dns-content\">\n        <div class=\"dns-title\">Re-check the domain resolution<\/div>\n        <div class=\"dns-desc\">\n          Test the DNS lookup for every domain causing an issue to re-test after the issue is fixed.\n        <\/div>\n      <\/div>\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n\n\n<p>Using this process means that you\u2019ll be able to diagnose DNS problems based on a methodical approach. The commands outlined in the following sections align each step within the troubleshooting workflow, thus making it simpler for you to identify and resolve Windows DNS-related issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT4WPTheme\">Which are the essential DNS commands for Windows?<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"445\" src=\"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-list.png\" alt=\"dns-commands-list\" class=\"wp-image-50311\" srcset=\"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-list.png 800w, https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-list-300x167.png 300w, https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-list-768x427.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT5WPTheme\">1. ipconfig \/all<\/h3>\n\n\n\n<p>When troubleshooting Windows DNS-related issues, the first thing you need to do is run the ipconfig \/all command. This gives you a comprehensive summary of your computer\u2019s existing network configuration, including your computer&#8217;s current DNS servers for resolving domain names.<\/p>\n\n\n\n<p>By reviewing this data, you&#8217;ll be able to quickly determine if your computer is connected to the right network and whether it is obtaining valid DNS settings through either DHCP or static configuration.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>View complete network and DNS configuration for all active network adapters on Windows<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>ipconfig \/all<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DNS Servers<\/td>\n      <td>Currently assigned DNS server IPs (e.g., 8.8.8.8, 8.8.4.4)<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">IPv4 \/ IPv6 Address<\/td>\n      <td>System\u2019s assigned IP addresses<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Default Gateway<\/td>\n      <td>Router or network exit point<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DHCP Status<\/td>\n      <td>Shows whether IP is automatically assigned (Yes\/No)<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Hostname<\/td>\n      <td>Computer name on the network (e.g., DESKTOP-ABC123)<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Subnet Mask<\/td>\n      <td>Defines network size and range<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">MAC Address<\/td>\n      <td>Physical hardware address of network adapter<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DHCP Server<\/td>\n      <td>Server responsible for assigning IP configuration<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Read It<\/td>\n      <td>Check DNS servers for correctness; verify IP and gateway for valid connectivity; incorrect values may indicate DNS or network issues.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use<\/td>\n      <td>\n        \u2022 Check DNS servers in use<br>\n        \u2022 Verify DHCP settings<br>\n        \u2022 Troubleshoot website\/domain issues<br>\n        \u2022 Confirm settings after DNS changes<br>\n        \u2022 Gather network info for debugging\n      <\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>This DNS command filters the results and displays only DNS-related entries, making it easier to identify the DNS servers currently assigned to your system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT6WPTheme\">2. nslookup<\/h3>\n\n\n\n<p>One of the best utilities for troubleshooting DNS and verifying domain names is nslookup. It\u2019s used to find out if a domain name is resolving correctly by sending a DNS query to the configured DNS server and returning the response to you. In simple language, it verifies whether the domain is resolving to the correct IP address.<\/p>\n\n\n\n<p>Because nslookup communicates with DNS servers directly, it is the primary tool for diagnosing domain resolution issues, testing\/confirming DNS changes, and determining whether the propagation status of <a href=\"https:\/\/www.milesweb.in\/hosting-faqs\/what-are-my-dns-records\/\">DNS records<\/a> is successful.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>Check how a domain name resolves through DNS and identify the IP address associated with it.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>nslookup example.com<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DNS Server Info<\/td>\n      <td>Shows which DNS server is handling the query (e.g., dns.google).<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DNS Server IP<\/td>\n      <td>IP address of the DNS resolver (e.g., 8.8.8.8).<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Resolved Domain IP<\/td>\n      <td>IP address returned for the domain (e.g., 93.184.216.34).<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Response Details<\/td>\n      <td>Includes DNS query status such as \u201cNon-authoritative answer\u201d.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Read It<\/td>\n      <td>Check if the DNS server is expected and verify that the returned IP matches the correct hosting server; errors or wrong IPs indicate DNS issues.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use It<\/td>\n      <td>\n        \u2022 Troubleshoot website not loading<br>\n        \u2022 Verify domain points correctly<br>\n        \u2022 Check DNS propagation after changes<br>\n        \u2022 Confirm DNS updates are active<br>\n        \u2022 Diagnose server\/domain resolution issues\n      <\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>You can also use nslookup to check on public domains or to check on one or more DNS records of your website. If the returned IP address from nslookup does not match the IP address assigned to your <a href=\"https:\/\/www.milesweb.in\/\">website&#8217;s hosting<\/a> server, either the DNS records are still being propagated, or there is a problem with how the DNS records were configured.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT7WPTheme\">3. nslookup with a Specific DNS Server<\/h3>\n\n\n\n<p>In some cases, the issue is with the DNS server resolving the domain, not the domain itself. Thus, the standard nslookup command will only show you what&#8217;s happening on the specific DNS server. In order to get the real issue diagnosed, it must be checked against other DNS servers.<\/p>\n\n\n\n<p>If you want to check whether different DNS providers can resolve a specific domain, you should test it using public DNS servers. This helps confirm whether the issue is only with your local DNS server.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>Query a domain using a specific DNS server instead of the system\u2019s default DNS.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>nslookup example.com 8.8.8.8<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DNS Server Info<\/td>\n      <td>Shows the DNS server being queried (e.g., Google DNS).<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DNS Server IP<\/td>\n      <td>IP address of the selected DNS resolver (e.g., 8.8.8.8).<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Resolved Domain IP<\/td>\n      <td>IP address returned for the domain (e.g., 93.184.216.34).<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Response Details<\/td>\n      <td>Includes DNS status such as \u201cNon-authoritative answer\u201d.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Read It<\/td>\n      <td>If public DNS works but default DNS fails, the issue is likely ISP DNS or local configuration; different results across DNS providers may indicate propagation delay.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Common DNS Servers for Testing<\/td>\n      <td>\n        Google DNS: 8.8.8.8<br>\n        Google Secondary: 8.8.4.4<br>\n        Cloudflare: 1.1.1.1<br>\n        Cloudflare Secondary: 1.0.0.1<br>\n        OpenDNS: 208.67.222.222<br>\n        OpenDNS Secondary: 208.67.220.220\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use It<\/td>\n      <td>\n        \u2022 Compare ISP vs public DNS results<br>\n        \u2022 Check DNS propagation<br>\n        \u2022 Identify local vs global DNS issues<br>\n        \u2022 Troubleshoot domain resolution differences<br>\n        \u2022 Verify server migration updates\n      <\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>When troubleshooting DNS issues, test the domain at least two different times on multiple locations using different public DNS servers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT8WPTheme\">4. ipconfig \/displaydns<\/h3>\n\n\n\n<p>Whenever you access a website, Windows saves local results from DNS lookups in a temporary cache. This way, the next time you visit a website, you can connect faster (skipping the permission required for the DNS server for the same IP address). You can review the DNS cache to see how Windows is resolving domain names by using the command ipconfig \/displaydns.<\/p>\n\n\n\n<p>This command is particularly useful when troubleshooting DNS-related issues caused by outdated or incorrectly cached entries.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>Display the contents of the local DNS resolver cache stored on Windows.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>ipconfig \/displaydns<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Cached Data Shown<\/td>\n      <td>Stored DNS entries for previously visited domains.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Record Types<\/td>\n      <td>A, AAAA, CNAME, and other DNS record types.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">TTL (Time To Live)<\/td>\n      <td>Time remaining before the cache entry expires.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Data Length<\/td>\n      <td>Size of the DNS record data.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Resolved IP Address<\/td>\n      <td>IP address linked to the cached domain.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Previously Resolved Hosts<\/td>\n      <td>List of domains recently accessed on the system.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Read It<\/td>\n      <td>Check domain name, TTL, and IP address; outdated or incorrect IPs indicate stale cache that may affect website access.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use It<\/td>\n      <td>\n        \u2022 Investigate stale DNS entries<br>\n        \u2022 Check cached domain resolution<br>\n        \u2022 Troubleshoot website loading issues after DNS changes<br>\n        \u2022 Verify local DNS behavior<br>\n        \u2022 Analyze how Windows resolved a domain earlier\n      <\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>The ipconfig \/displaydns command filters the normal output list of DNS caches. Therefore, only results for a specified domain are displayed. This functionality makes troubleshooting much easier.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT9WPTheme\">5. ipconfig \/flushdns<\/h3>\n\n\n\n<p>If any of the DNS cache entries stored in memory are outdated or incorrect, your computer continues to connect to the wrong server (even after updated DNS records). The command ipconfig \/flushdns removes all DNS cache records from the local system, and hence, the next time you attempt to connect to a website, Windows obtains new DNS records from the configured DNS servers.<\/p>\n\n\n\n<p>Because of this, ipconfig \/flushdns is one of the most frequently used commands for troubleshooting DNS and is one of the first recommended fixes when a website does not load correctly after making DNS changes.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>Clear the local DNS resolver cache and remove all stored DNS records.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>ipconfig \/flushdns<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Example Output<\/td>\n      <td>Successfully flushed the DNS Resolver Cache.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">What Happens When Run<\/td>\n      <td>\n        \u2022 Deletes all cached DNS records<br>\n        \u2022 Removes outdated domain-to-IP mappings<br>\n        \u2022 Forces fresh DNS lookups<br>\n        \u2022 Ensures latest DNS information is fetched from authoritative servers\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Important Note<\/td>\n      <td>Does not change DNS settings or server-side DNS records; only clears local cache.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use It<\/td>\n      <td>\n        \u2022 After DNS record updates<br>\n        \u2022 When a website moves to a new server<br>\n        \u2022 If old IP addresses still appear<br>\n        \u2022 When a domain resolves incorrectly<br>\n        \u2022 During DNS-related troubleshooting\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Verify<\/td>\n      <td>Use <code>nslookup example.com<\/code> or <code>ping example.com<\/code> to confirm updated DNS resolution.<\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>Clearing the DNS cache is one of the fastest methods to resolve access problems after DNS changes. However, if the website continues to resolve to an incorrect IP address even after the DNS cache has been cleared, it suggests that the changes are still propagating or the records themselves are incorrectly configured.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT10WPTheme\">6. ipconfig \/registerdns<\/h3>\n\n\n\n<p>The command to flush DNS cache clears stored DNS entries on your system; ipconfig \/registerdns does the opposite and asks Microsoft to update and record your system&#8217;s DNS entries at the configured DNS server. By running this command, you are assuring that the DNS database contains the most up-to-date information for the DNS name associated with the server&#8217;s IP address.<\/p>\n\n\n\n<p>This command is most helpful with devices in business networks, Windows Server environments, and Active Directory, where devices regularly register with the DNS server because of dynamic DNS registration.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>Force Windows to register or update its DNS records with the configured DNS server.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>ipconfig \/registerdns<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Example Output<\/td>\n      <td>Registration of DNS resource records has been initiated; errors (if any) are logged in Event Viewer.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">What Happens When Run<\/td>\n      <td>\n        \u2022 Refreshes DNS registration for network adapters<br>\n        \u2022 Updates hostname-to-IP mappings<br>\n        \u2022 Sends updated info to DNS server<br>\n        \u2022 Creates\/updates dynamic DNS records\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Key Difference<\/td>\n      <td>Unlike <code>ipconfig \/flushdns<\/code> (clears local cache), this command updates DNS records on the DNS server itself.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use It<\/td>\n      <td>\n        \u2022 Hostname not resolving correctly<br>\n        \u2022 IP address changes not reflected in DNS<br>\n        \u2022 After joining a domain<br>\n        \u2022 Active Directory DNS issues<br>\n        \u2022 Dynamic DNS not updating properly\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Verify<\/td>\n      <td>Use <code>nslookup hostname<\/code> to confirm the updated IP matches the current system address.<\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>If you run this command and your DNS entry does not immediately show an updated record, wait a few minutes for the DNS server to process the registration request. You can also check for errors in the Windows Event Viewer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT11WPTheme\">7. Ping Domain Name<\/h3>\n\n\n\n<p>While ping is commonly known as a tool for testing network connections, it is also useful for troubleshooting DNS issues. When Windows tries to send packets to a node on the Internet, it has to first resolve the respective node&#8217;s domain name to its corresponding IP address. Thus, this command verifies if DNS resolution is working properly.<\/p>\n\n\n\n<p>Additionally, unlike nslookup, which only provides a way of resolving DNS queries, ping provides information on whether the destination (the IP address returned with DNS resolution) is reachable on the network.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>Verify domain resolution to an IP address and test basic network connectivity.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>ping example.com<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Example Output<\/td>\n      <td>\n        Pinging example.com [93.184.216.34] with 32 bytes of data\u2026<br>\n        Reply from 93.184.216.34: time=15ms TTL=56\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">What It Shows<\/td>\n      <td>\n        \u2022 Resolved IP address of domain<br>\n        \u2022 Connectivity status<br>\n        \u2022 Response time (latency)<br>\n        \u2022 Packet loss information<br>\n        \u2022 Network reachability\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Read It<\/td>\n      <td>\n        \u2022 IP in brackets confirms DNS resolution<br>\n        \u2022 Replies confirm connectivity<br>\n        \u2022 No reply or error indicates possible issue\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">DNS vs Network Diagnosis<\/td>\n      <td>\n        \u2022 No host found \u2192 DNS issue<br>\n        \u2022 Resolved but no reply \u2192 Network\/firewall\/server issue<br>\n        \u2022 Replies received \u2192 DNS + network working fine\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Common Errors<\/td>\n      <td>\u201cPing request could not find host\u201d \u2192 DNS failure<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use It<\/td>\n      <td>\n        \u2022 Check domain resolution<br>\n        \u2022 Test server connectivity<br>\n        \u2022 Identify DNS vs network issues<br>\n        \u2022 Troubleshoot VPS\/dedicated servers<br>\n        \u2022 Quick health check before advanced debugging\n      <\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>To keep their network safe, many websites or servers purposely deny pinging (ICMP) requests. Thus, ping is used to test connectivity. If DNS resolves successfully but ping requests time out, the server may still be working, but it can appear as if there is no connection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"WPT12WPTheme\">8. tracert Domain Name<\/h3>\n\n\n\n<p>To perform a more complete test run, use &#8216;nslookup&#8217; and then run &#8216;tracert&#8217;. This determines the type of connection issue. When you receive an &#8220;A&#8221; record for your domain but your website\/server has no connectivity from your computer, there may be routing problems between the paths (from your computer to the destination). Within the same line, run &#8216;tracert&#8217; to exactly pinpoint where the network broke.<\/p>\n\n\n\n<p>As mentioned above, tracert shows the router paths that data packets travel to get to the next router. With the tracert command, it is now possible to pinpoint where communication issues occurred due to routing errors or delays at points along the path the data travelled.<\/p>\n\n\n\n<style>\n.wrap{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;padding:8px 0;}\ntable{width:100%;border-collapse:collapse;font-size:13.5px;border:1px solid #dde3ef;border-radius:10px;overflow:hidden;}\nthead tr{background:#eef5ff;}\nthead th{padding:10px 16px;text-align:left;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#1e3a5f;border-bottom:1px solid #dde3ef;}\ntbody tr{border-bottom:1px solid #e8ecf4;}\ntbody tr:last-child{border-bottom:none;}\ntbody td{padding:10px 16px;vertical-align:top;color:#222;background:#f8fbff;}\n.info-title{font-weight:700;color:#111;}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>Category<\/th>\n      <th>Information<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"info-title\">Purpose<\/td>\n      <td>Trace the network path to a domain or IP address and identify connectivity issues between system and destination.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Command<\/td>\n      <td><code>tracert example.com<\/code><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Example Output<\/td>\n      <td>\n        Tracing route to example.com [93.184.216.34]<br>\n        1 &lt;1 ms 192.168.1.1<br>\n        2 10 ms isp-router.net<br>\n        3 18 ms transit-provider.net<br>\n        4 25 ms example.com\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">What It Shows<\/td>\n      <td>\n        \u2022 Each hop (router) between source and destination<br>\n        \u2022 Response time per hop<br>\n        \u2022 Full network routing path<br>\n        \u2022 Points of delay or failure\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">How to Read It<\/td>\n      <td>Each line represents a router along the path. Successful completion means the network route is working. Timeouts (* * *) indicate possible routing, firewall, or ISP issues.<\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">Common Issues<\/td>\n      <td>\n        \u2022 Request timed out \u2192 routing\/firewall\/ISP issue<br>\n        \u2022 High latency at a hop \u2192 network congestion<br>\n        \u2022 No completion \u2192 broken route or blocked traffic\n      <\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"info-title\">When to Use It<\/td>\n      <td>\n        \u2022 Verify connectivity after DNS resolution<br>\n        \u2022 Diagnose slow websites or servers<br>\n        \u2022 Identify ISP or routing issues<br>\n        \u2022 Detect network bottlenecks<br>\n        \u2022 Troubleshoot unreachable websites\n      <\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<p>Always run tracert after getting a successful DNS resolution. If you are unable to get a successful DNS resolution, you must first address the issues with the DNS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT13WPTheme\">What are advanced DNS record lookup commands?<\/h2>\n\n\n\n<p>Typical DNS troubleshooting only considers whether or not there is an &#8220;A&#8221; record resolution of the domain. But it&#8217;s important to note that besides &#8220;A&#8221; records, DNS contains other types of records, such as MX, SOA, NS, etc., that provide ways to check the email routing, the actual ownership of the domain name, where the nameservers are located, and if the zones contain all of the information needed to run their DNS server.<\/p>\n\n\n\n<p>Querying certain record types through nslookup allows you to troubleshoot issues with email delivery, verify DNS migrations, and validate domain configurations. As these commands allow you to perform advanced lookups, they are helpful tools for website owners, server administrators, and IT professionals managing their domains and hosting environments.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Check MX records<\/h3>\n\n\n\n<p>The Mail Exchange (MX) records identify the mail servers responsible for accepting emails sent to an address associated with a particular domain. When troubleshooting email reach issues, checking the MX records for the specific domain is the first step.<\/p>\n\n\n\n<p><strong>Email (MX Record) Lookup<\/strong><\/p>\n\n\n\n<style>\n.mx-card{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  border:1px solid #dde3ef;\n  border-radius:14px;\n  overflow:hidden;\n  margin:20px 0;\n  background:#fff;\n}\n\n.mx-head{\n  background:#eef5ff;\n  padding:14px 18px;\n  border-bottom:1px solid #dde3ef;\n}\n\n.mx-head h4{\n  margin:0;\n  font-size:15px;\n  color:#1e3a5f;\n  font-weight:700;\n}\n\n.mx-command{\n  margin-top:8px;\n  display:inline-block;\n  background:#1e293b;\n  color:#fff;\n  padding:8px 12px;\n  border-radius:8px;\n  font-family:Consolas,Monaco,monospace;\n  font-size:13px;\n}\n\n.mx-body{\n  padding:18px;\n}\n\n.mx-section{\n  margin-bottom:16px;\n}\n\n.mx-section:last-child{\n  margin-bottom:0;\n}\n\n.mx-label{\n  font-size:12px;\n  font-weight:700;\n  text-transform:uppercase;\n  letter-spacing:.05em;\n  color:#64748b;\n  margin-bottom:6px;\n}\n\n.mx-text{\n  font-size:14px;\n  line-height:1.7;\n  color:#334155;\n}\n\n.mx-list{\n  margin:0;\n  padding:0;\n  list-style:none;\n}\n\n.mx-list li{\n  padding:5px 0;\n  color:#334155;\n  font-size:14px;\n}\n\n.mx-list li::before{\n  content:\"\u2713 \";\n  color:#2563eb;\n  font-weight:700;\n}\n<\/style>\n\n<div class=\"mx-card\">\n\n  <div class=\"mx-head\">\n    <h4>\ud83d\udce7 MX Record Lookup<\/h4>\n    <div class=\"mx-command\">nslookup -type=mx example.com<\/div>\n  <\/div>\n\n  <div class=\"mx-body\">\n\n    <div class=\"mx-section\">\n      <div class=\"mx-label\">Purpose<\/div>\n      <div class=\"mx-text\">\n        Check mail exchange (MX) records of a domain.\n      <\/div>\n    <\/div>\n\n    <div class=\"mx-section\">\n      <div class=\"mx-label\">Example Output<\/div>\n      <div class=\"mx-text\">\n        example.com MX preference = 10, mail exchanger = mail.example.com\n      <\/div>\n    <\/div>\n\n    <div class=\"mx-section\">\n      <div class=\"mx-label\">What It Shows<\/div>\n      <ul class=\"mx-list\">\n        <li>Mail servers configured for the domain<\/li>\n        <li>Priority (preference) values<\/li>\n        <li>Email routing destination<\/li>\n      <\/ul>\n    <\/div>\n\n    <div class=\"mx-section\">\n      <div class=\"mx-label\">How to Read It<\/div>\n      <div class=\"mx-text\">\n        Lower preference number = higher priority mail server; ensures correct email delivery routing.\n      <\/div>\n    <\/div>\n\n    <div class=\"mx-section\">\n      <div class=\"mx-label\">When to Use It<\/div>\n      <ul class=\"mx-list\">\n        <li>Email troubleshooting<\/li>\n        <li>Mail server verification<\/li>\n        <li>Email migration checks<\/li>\n        <li>Confirming email delivery setup<\/li>\n      <\/ul>\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2. Check TXT records<\/h3>\n\n\n\n<p>TXT records provide temporary or permanent text-based information related to DNS. It also serves other types of information and formats used for administrative purposes and verification of the domain owner or provider&#8217;s identity, which is stored with a TXT record.<\/p>\n\n\n\n<p><strong>TXT Record Lookup<\/strong><\/p>\n\n\n\n<style>\n.txt-card{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  border:1px solid #dde3ef;\n  border-radius:14px;\n  overflow:hidden;\n  margin:20px 0;\n  background:#fff;\n}\n\n.txt-head{\n  background:#eef5ff;\n  padding:14px 18px;\n  border-bottom:1px solid #dde3ef;\n}\n\n.txt-head h4{\n  margin:0;\n  font-size:15px;\n  color:#1e3a5f;\n  font-weight:700;\n}\n\n.txt-command{\n  margin-top:8px;\n  display:inline-block;\n  background:#1e293b;\n  color:#fff;\n  padding:8px 12px;\n  border-radius:8px;\n  font-family:Consolas,Monaco,monospace;\n  font-size:13px;\n}\n\n.txt-body{\n  padding:18px;\n}\n\n.txt-section{\n  margin-bottom:16px;\n}\n\n.txt-section:last-child{\n  margin-bottom:0;\n}\n\n.txt-label{\n  font-size:12px;\n  font-weight:700;\n  text-transform:uppercase;\n  letter-spacing:.05em;\n  color:#64748b;\n  margin-bottom:6px;\n}\n\n.txt-text{\n  font-size:14px;\n  line-height:1.7;\n  color:#334155;\n}\n\n.txt-list{\n  margin:0;\n  padding:0;\n  list-style:none;\n}\n\n.txt-list li{\n  padding:5px 0;\n  color:#334155;\n  font-size:14px;\n}\n\n.txt-list li::before{\n  content:\"\u2713 \";\n  color:#2563eb;\n  font-weight:700;\n}\n<\/style>\n\n<div class=\"txt-card\">\n\n  <div class=\"txt-head\">\n    <h4>\ud83d\udcdd TXT Record Lookup<\/h4>\n    <div class=\"txt-command\">nslookup -type=txt example.com<\/div>\n  <\/div>\n\n  <div class=\"txt-body\">\n\n    <div class=\"txt-section\">\n      <div class=\"txt-label\">Purpose<\/div>\n      <div class=\"txt-text\">\n        Retrieve TXT records for a domain.\n      <\/div>\n    <\/div>\n\n    <div class=\"txt-section\">\n      <div class=\"txt-label\">Example Output<\/div>\n      <div class=\"txt-text\">\n        example.com text = &#8220;v=spf1 include:_spf.google.com ~all&#8221;\n      <\/div>\n    <\/div>\n\n    <div class=\"txt-section\">\n      <div class=\"txt-label\">What It Shows<\/div>\n      <ul class=\"txt-list\">\n        <li>SPF records<\/li>\n        <li>DKIM-related entries<\/li>\n        <li>Domain verification tokens<\/li>\n        <li>Other TXT-based configurations<\/li>\n      <\/ul>\n    <\/div>\n\n    <div class=\"txt-section\">\n      <div class=\"txt-label\">How to Read It<\/div>\n      <div class=\"txt-text\">\n        TXT records contain authentication and verification data used for email security and domain validation.\n      <\/div>\n    <\/div>\n\n    <div class=\"txt-section\">\n      <div class=\"txt-label\">When to Use It<\/div>\n      <ul class=\"txt-list\">\n        <li>SPF verification<\/li>\n        <li>DKIM troubleshooting<\/li>\n        <li>Domain ownership verification<\/li>\n        <li>Third-party service setup (Google, Microsoft, etc.)<\/li>\n      <\/ul>\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. Check NS records<\/h3>\n\n\n\n<p>The Nameserver (NS) records identify which DNS servers are responsible for managing the DNS zone for a domain.<\/p>\n\n\n\n<p><strong>Nameserver (NS) Lookup<\/strong><\/p>\n\n\n\n<style>\n.ns-card{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  border:1px solid #dde3ef;\n  border-radius:14px;\n  overflow:hidden;\n  margin:20px 0;\n  background:#fff;\n}\n\n.ns-head{\n  background:#eef5ff;\n  padding:14px 18px;\n  border-bottom:1px solid #dde3ef;\n}\n\n.ns-head h4{\n  margin:0;\n  font-size:15px;\n  color:#1e3a5f;\n  font-weight:700;\n}\n\n.ns-command{\n  margin-top:8px;\n  display:inline-block;\n  background:#1e293b;\n  color:#fff;\n  padding:8px 12px;\n  border-radius:8px;\n  font-family:Consolas,Monaco,monospace;\n  font-size:13px;\n}\n\n.ns-body{\n  padding:18px;\n}\n\n.ns-section{\n  margin-bottom:16px;\n}\n\n.ns-section:last-child{\n  margin-bottom:0;\n}\n\n.ns-label{\n  font-size:12px;\n  font-weight:700;\n  text-transform:uppercase;\n  letter-spacing:.05em;\n  color:#64748b;\n  margin-bottom:6px;\n}\n\n.ns-text{\n  font-size:14px;\n  line-height:1.7;\n  color:#334155;\n}\n\n.ns-list{\n  margin:0;\n  padding:0;\n  list-style:none;\n}\n\n.ns-list li{\n  padding:5px 0;\n  color:#334155;\n  font-size:14px;\n}\n\n.ns-list li::before{\n  content:\"\u2713 \";\n  color:#2563eb;\n  font-weight:700;\n}\n<\/style>\n\n<div class=\"ns-card\">\n\n  <div class=\"ns-head\">\n    <h4>\ud83c\udf10 NS Record Lookup<\/h4>\n    <div class=\"ns-command\">nslookup -type=ns example.com<\/div>\n  <\/div>\n\n  <div class=\"ns-body\">\n\n    <div class=\"ns-section\">\n      <div class=\"ns-label\">Purpose<\/div>\n      <div class=\"ns-text\">\n        Retrieve authoritative nameservers for a domain.\n      <\/div>\n    <\/div>\n\n    <div class=\"ns-section\">\n      <div class=\"ns-label\">Example Output<\/div>\n      <div class=\"ns-text\">\n        example.com nameserver = ns1.examplehost.com<br>\n        example.com nameserver = ns2.examplehost.com\n      <\/div>\n    <\/div>\n\n    <div class=\"ns-section\">\n      <div class=\"ns-label\">What It Shows<\/div>\n      <ul class=\"ns-list\">\n        <li>Authoritative nameservers for the domain<\/li>\n        <li>DNS hosting provider information<\/li>\n        <li>Domain delegation details<\/li>\n      <\/ul>\n    <\/div>\n\n    <div class=\"ns-section\">\n      <div class=\"ns-label\">How to Read It<\/div>\n      <div class=\"ns-text\">\n        These nameservers indicate where the domain\u2019s DNS records are managed; they define the DNS authority for the domain.\n      <\/div>\n    <\/div>\n\n    <div class=\"ns-section\">\n      <div class=\"ns-label\">When to Use It<\/div>\n      <ul class=\"ns-list\">\n        <li>Nameserver verification<\/li>\n        <li>DNS migration checks<\/li>\n        <li>Domain transfer validation<\/li>\n        <li>Troubleshooting DNS delegation issues<\/li>\n      <\/ul>\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4. Check SOA records<\/h3>\n\n\n\n<p>The Start of Authority (SOA) records contain the administrative information related to the primary authoritative nameserver for the DNS zone. It comprises major details required for zone administration.<\/p>\n\n\n\n<p><strong>SOA Record Lookup<\/strong><\/p>\n\n\n\n<style>\n.soa-card{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  border:1px solid #dde3ef;\n  border-radius:14px;\n  overflow:hidden;\n  margin:20px 0;\n  background:#fff;\n}\n\n.soa-head{\n  background:#eef5ff;\n  padding:14px 18px;\n  border-bottom:1px solid #dde3ef;\n}\n\n.soa-head h4{\n  margin:0;\n  font-size:15px;\n  color:#1e3a5f;\n  font-weight:700;\n}\n\n.soa-command{\n  margin-top:8px;\n  display:inline-block;\n  background:#1e293b;\n  color:#fff;\n  padding:8px 12px;\n  border-radius:8px;\n  font-family:Consolas,Monaco,monospace;\n  font-size:13px;\n}\n\n.soa-body{\n  padding:18px;\n}\n\n.soa-section{\n  margin-bottom:16px;\n}\n\n.soa-section:last-child{\n  margin-bottom:0;\n}\n\n.soa-label{\n  font-size:12px;\n  font-weight:700;\n  text-transform:uppercase;\n  letter-spacing:.05em;\n  color:#64748b;\n  margin-bottom:6px;\n}\n\n.soa-text{\n  font-size:14px;\n  line-height:1.7;\n  color:#334155;\n}\n\n.soa-list{\n  margin:0;\n  padding:0;\n  list-style:none;\n}\n\n.soa-list li{\n  padding:5px 0;\n  color:#334155;\n  font-size:14px;\n}\n\n.soa-list li::before{\n  content:\"\u2713 \";\n  color:#2563eb;\n  font-weight:700;\n}\n<\/style>\n\n<div class=\"soa-card\">\n\n  <div class=\"soa-head\">\n    <h4>\ud83d\udcdc SOA Record Lookup<\/h4>\n    <div class=\"soa-command\">nslookup -type=soa example.com<\/div>\n  <\/div>\n\n  <div class=\"soa-body\">\n\n    <div class=\"soa-section\">\n      <div class=\"soa-label\">Purpose<\/div>\n      <div class=\"soa-text\">\n        Retrieve Start of Authority (SOA) record for a domain.\n      <\/div>\n    <\/div>\n\n    <div class=\"soa-section\">\n      <div class=\"soa-label\">Example Output<\/div>\n      <div class=\"soa-text\">\n        Primary name server = ns1.examplehost.com<br>\n        Responsible mail addr = admin.example.com<br>\n        Serial = 2026061101\n      <\/div>\n    <\/div>\n\n    <div class=\"soa-section\">\n      <div class=\"soa-label\">What It Shows<\/div>\n      <ul class=\"soa-list\">\n        <li>Primary authoritative nameserver<\/li>\n        <li>DNS zone serial number<\/li>\n        <li>Administrator contact (email format)<\/li>\n        <li>Zone refresh and update details<\/li>\n      <\/ul>\n    <\/div>\n\n    <div class=\"soa-section\">\n      <div class=\"soa-label\">How to Read It<\/div>\n      <div class=\"soa-text\">\n        The SOA record defines the main DNS authority for a domain; the serial number increases whenever DNS changes are made.\n      <\/div>\n    <\/div>\n\n    <div class=\"soa-section\">\n      <div class=\"soa-label\">When to Use It<\/div>\n      <ul class=\"soa-list\">\n        <li>DNS administration<\/li>\n        <li>Zone file troubleshooting<\/li>\n        <li>DNS replication checks<\/li>\n        <li>Propagation issue diagnosis<\/li>\n      <\/ul>\n    <\/div>\n\n  <\/div>\n\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT14WPTheme\">How to reset DNS using CMD?<\/h2>\n\n\n\n<p>Using the command prompt to reset your DNS resolves multiple Internet issues like slow browsing, failed websites, and failed DNS queries. Each command is used to clear or refresh the various parts of your network configuration. <\/p>\n\n\n\n<p>Below are the steps:<\/p>\n\n\n\n<style>\n.net-steps{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  margin:24px 0;\n}\n\n.net-steps .step{\n  position:relative;\n  padding:18px 20px 18px 80px;\n  border:1px solid #dde3ef;\n  border-radius:12px;\n  background:#fff;\n  margin-bottom:14px;\n}\n\n.net-steps .step:last-child{\n  margin-bottom:0;\n}\n\n.net-steps .num{\n  position:absolute;\n  left:20px;\n  top:18px;\n  width:42px;\n  height:42px;\n  border-radius:50%;\n  background:#eef5ff;\n  border:2px solid #cfe0ff;\n  color:#2563eb;\n  font-weight:700;\n  display:flex;\n  align-items:center;\n  justify-content:center;\n}\n\n.net-steps .title{\n  font-size:16px;\n  font-weight:700;\n  color:#111827;\n  margin-bottom:8px;\n}\n\n.net-steps .cmd{\n  display:inline-block;\n  background:#1e293b;\n  color:#fff;\n  padding:7px 12px;\n  border-radius:6px;\n  font-family:Consolas,Monaco,monospace;\n  font-size:13px;\n  margin-bottom:10px;\n}\n\n.net-steps .desc{\n  font-size:14px;\n  line-height:1.7;\n  color:#475569;\n}\n<\/style>\n\n<div class=\"net-steps\">\n\n  <div class=\"step\">\n    <div class=\"num\">1<\/div>\n    <div class=\"title\">Flush DNS Cache<\/div>\n    <div class=\"cmd\">ipconfig \/flushdns<\/div>\n    <div class=\"desc\">\n      Clears stored DNS cache from your system. Removes outdated or corrupted website IP entries so Windows fetches fresh DNS data on next request.\n    <\/div>\n  <\/div>\n\n  <div class=\"step\">\n    <div class=\"num\">2<\/div>\n    <div class=\"title\">Release IP Address<\/div>\n    <div class=\"cmd\">ipconfig \/release<\/div>\n    <div class=\"desc\">\n      Releases the current IP address assigned by router\/ISP. Temporarily disconnects network configuration to prepare for a new IP assignment.\n    <\/div>\n  <\/div>\n\n  <div class=\"step\">\n    <div class=\"num\">3<\/div>\n    <div class=\"title\">Renew IP Address<\/div>\n    <div class=\"cmd\">ipconfig \/renew<\/div>\n    <div class=\"desc\">\n      Requests a new IP address from the DHCP server (router\/ISP). Re-establishes network connectivity with updated settings.\n    <\/div>\n  <\/div>\n\n  <div class=\"step\">\n    <div class=\"num\">4<\/div>\n    <div class=\"title\">Reset Winsock Catalog<\/div>\n    <div class=\"cmd\">netsh winsock reset<\/div>\n    <div class=\"desc\">\n      Resets Windows network socket settings. Fixes corrupted network configurations that may block internet or application connectivity.\n    <\/div>\n  <\/div>\n\n  <div class=\"step\">\n    <div class=\"num\">5<\/div>\n    <div class=\"title\">Restart System<\/div>\n    <div class=\"cmd\">(No command)<\/div>\n    <div class=\"desc\">\n      Restarts Windows to fully apply network changes. Ensures all resets and updates take effect properly.\n    <\/div>\n  <\/div>\n\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT15WPTheme\">What are common DNS errors and the commands to fix them?<\/h2>\n\n\n\n<p>There are different ways that a DNS issue appears. Some cause a webpage loading failure or redirect to the wrong page, while others may prevent emails from loading. Below are some of the most common DNS problems and the CMD commands used to find or repair them.<\/p>\n\n\n\n<style>\n.wrap{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  padding:8px 0;\n}\n\ntable{\n  width:100%;\n  border-collapse:collapse;\n  font-size:13.5px;\n  border:1px solid #dde3ef;\n  border-radius:10px;\n  overflow:hidden;\n}\n\nthead tr{\n  background:#eef5ff;\n}\n\nthead th{\n  padding:10px 16px;\n  text-align:left;\n  font-size:11px;\n  font-weight:700;\n  text-transform:uppercase;\n  letter-spacing:.06em;\n  color:#1e3a5f;\n  border-bottom:1px solid #dde3ef;\n}\n\ntbody tr{\n  border-bottom:1px solid #e8ecf4;\n}\n\ntbody tr:last-child{\n  border-bottom:none;\n}\n\ntbody td{\n  padding:12px 16px;\n  vertical-align:middle;\n  background:#f8fbff;\n  color:#222;\n}\n\n.problem{\n  font-weight:600;\n  color:#111827;\n}\n\n.cmd{\n  font-family:Consolas,Monaco,monospace;\n  background:#eef2ff;\n  color:#1e3a8a;\n  padding:4px 8px;\n  border-radius:6px;\n  display:inline-block;\n  font-size:13px;\n}\n<\/style>\n\n<div class=\"wrap\">\n<table>\n  <thead>\n    <tr>\n      <th>DNS Problem<\/th>\n      <th>Command<\/th>\n    <\/tr>\n  <\/thead>\n\n  <tbody>\n\n    <tr>\n      <td class=\"problem\">Old website IP showing<\/td>\n      <td><span class=\"cmd\">ipconfig \/flushdns<\/span><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"problem\">Domain not resolving<\/td>\n      <td><span class=\"cmd\">nslookup<\/span><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"problem\">Wrong DNS server configured<\/td>\n      <td><span class=\"cmd\">ipconfig \/all<\/span><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"problem\">Email records missing<\/td>\n      <td><span class=\"cmd\">nslookup -type=mx<\/span><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"problem\">Corrupted network stack<\/td>\n      <td><span class=\"cmd\">netsh winsock reset<\/span><\/td>\n    <\/tr>\n\n    <tr>\n      <td class=\"problem\">DNS cache issues<\/td>\n      <td><span class=\"cmd\">ipconfig \/displaydns<\/span><\/td>\n    <\/tr>\n\n  <\/tbody>\n<\/table>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">1. Old website IP showing<\/h3>\n\n\n\n<div style=\"border:1px solid #dbe4f0;border-left:5px solid #2563eb;border-radius:12px;padding:18px;background:#fff;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\">\n<p style=\"margin:0 0 14px;line-height:1.7;color:#475569;\">\nWhen your system holds onto an outdated cache of DNS, you may receive the old IP address of a web page even though the page has already moved to a new server.\n<\/p>\n\n<div style=\"background:#eef5ff;padding:10px 14px;border-radius:8px;margin-bottom:14px;\">\n<strong>Resolution Command:<\/strong>\n<code style=\"background:#1e293b;color:#fff;padding:4px 8px;border-radius:5px;\">ipconfig \/flushdns<\/code>\n<\/div>\n\n<p style=\"margin:0;line-height:1.7;color:#475569;\">\nThe command &#8220;ipconfig \/flushdns&#8221; will clear out that DNS cache and force the computer to download the new IP address from the DNS server.\n<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2. Domain not resolving<\/h3>\n\n\n\n<div style=\"border:1px solid #dbe4f0;border-left:5px solid #16a34a;border-radius:12px;padding:18px;background:#fff;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\">\n\n<p style=\"margin:0 0 14px;line-height:1.7;color:#475569;\">\nIf you can&#8217;t open a domain name, it indicates that there was a failure when attempting to resolve the domain name into an IP address.\n<\/p>\n\n<div style=\"background:#f0fdf4;padding:10px 14px;border-radius:8px;margin-bottom:14px;\">\n<strong>Resolution Command:<\/strong>\n<code style=\"background:#1e293b;color:#fff;padding:4px 8px;border-radius:5px;\">nslookup<\/code>\n<\/div>\n\n<p style=\"margin:0;line-height:1.7;color:#475569;\">\nThe nslookup command determines whether the proper IP address is being resolved from the domain name and whether the DNS server is properly responding to your request.\n<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. DNS server configuration errors<\/h3>\n\n\n\n<div style=\"border:1px solid #dbe4f0;border-left:5px solid #7c3aed;border-radius:12px;padding:18px;background:#fff;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\">\n\n<p style=\"margin:0 0 14px;line-height:1.7;color:#475569;\">\nIf you&#8217;re experiencing slow website connections or computer browsing issues, there could be a configuration problem with your DNS server settings.\n<\/p>\n\n<div style=\"background:#f5f3ff;padding:10px 14px;border-radius:8px;margin-bottom:14px;\">\n<strong>Resolution Command:<\/strong>\n<code style=\"background:#1e293b;color:#fff;padding:4px 8px;border-radius:5px;\">ipconfig \/all<\/code>\n<\/div>\n\n<p style=\"margin:0;line-height:1.7;color:#475569;\">\nThe ipconfig \/all command shows you the complete networking configuration settings of your computer. In addition to that, it showcases details about the currently used DNS servers. You can then use that information to identify potential DNS configuration problems.\n<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4. Missing email records<\/h3>\n\n\n\n<div style=\"border:1px solid #dbe4f0;border-left:5px solid #ea580c;border-radius:12px;padding:18px;background:#fff;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\">\n\n<p style=\"margin:0 0 14px;line-height:1.7;color:#475569;\">\nIf you&#8217;re having trouble receiving emails, there may be an issue with the MX (Mail Exchange) records for the email accounts.\n<\/p>\n\n<div style=\"background:#fff7ed;padding:10px 14px;border-radius:8px;margin-bottom:14px;\">\n<strong>Resolution Command:<\/strong>\n<code style=\"background:#1e293b;color:#fff;padding:4px 8px;border-radius:5px;\">nslookup -type=mx<\/code>\n<\/div>\n\n<p style=\"margin:0;line-height:1.7;color:#475569;\">\nThe above command will allow you to query the mail servers for a domain to verify that the email is correctly routed.\n<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">5. Network stack damage<\/h3>\n\n\n\n<div style=\"border:1px solid #dbe4f0;border-left:5px solid #dc2626;border-radius:12px;padding:18px;background:#fff;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\">\n\n<p style=\"margin:0 0 14px;line-height:1.7;color:#475569;\">\nIf you are losing your internet connection or apps are failing to connect to the internet, it indicates that Winsock settings may be corrupt.\n<\/p>\n\n<div style=\"background:#fef2f2;padding:10px 14px;border-radius:8px;margin-bottom:14px;\">\n<strong>Resolution Command:<\/strong>\n<code style=\"background:#1e293b;color:#fff;padding:4px 8px;border-radius:5px;\">netsh winsock reset<\/code>\n<\/div>\n\n<p style=\"margin:0;line-height:1.7;color:#475569;\">\nResetting Winsock restores your default network socket configurations and fixes deep-rooted problems caused by internet connection failures.\n<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">6. Issues with DNS Cache<\/h3>\n\n\n\n<div style=\"border:1px solid #dbe4f0;border-left:5px solid #0891b2;border-radius:12px;padding:18px;background:#fff;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\">\n\n<p style=\"margin:0 0 14px;line-height:1.7;color:#475569;\">\nThe command below lists all DNS cache entries held in your local computer&#8217;s DNS cache.\n<\/p>\n\n<div style=\"background:#ecfeff;padding:10px 14px;border-radius:8px;margin-bottom:14px;\">\n<strong>Resolution Command:<\/strong>\n<code style=\"background:#1e293b;color:#fff;padding:4px 8px;border-radius:5px;\">ipconfig \/displaydns<\/code>\n<\/div>\n\n<p style=\"margin:0;line-height:1.7;color:#475569;\">\nYou can see which DNS records are currently being referenced on your local computer before you make the decision to flush your DNS cache.\n<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WPT16WPTheme\">What are the best practices when using DNS commands?<\/h2>\n\n\n\n<p>Using proper DNS troubleshooting procedures with the Command Prompt obtains accurate results and prevents unnecessary network problems.<\/p>\n\n\n\n<style>\n.dns-best-practices{\n  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\n  border:1px solid #dde3ef;\n  border-radius:14px;\n  overflow:hidden;\n  background:#fff;\n  margin:20px 0;\n}\n\n.dns-best-practices .bp-header{\n  background:#eef5ff;\n  padding:14px 18px;\n  border-bottom:1px solid #dde3ef;\n  font-size:16px;\n  font-weight:700;\n  color:#1e3a5f;\n}\n\n.dns-best-practices .bp-item{\n  display:flex;\n  gap:16px;\n  padding:18px;\n  border-bottom:1px solid #edf2f7;\n}\n\n.dns-best-practices .bp-item:last-child{\n  border-bottom:none;\n}\n\n.dns-best-practices .bp-icon{\n  width:42px;\n  height:42px;\n  min-width:42px;\n  border-radius:10px;\n  background:#eef5ff;\n  display:flex;\n  align-items:center;\n  justify-content:center;\n  font-size:18px;\n}\n\n.dns-best-practices .bp-content h4{\n  margin:0 0 8px;\n  font-size:15px;\n  font-weight:700;\n  color:#111827;\n}\n\n.dns-best-practices .bp-content p{\n  margin:0;\n  font-size:14px;\n  line-height:1.7;\n  color:#475569;\n}\n\n.dns-best-practices code{\n  background:#1e293b;\n  color:#fff;\n  padding:2px 6px;\n  border-radius:4px;\n  font-size:12px;\n}\n<\/style>\n\n<div class=\"dns-best-practices\">\n\n  <div class=\"bp-header\">\n    \u2713 DNS Troubleshooting Best Practices\n  <\/div>\n\n  <div class=\"bp-item\">\n    <div class=\"bp-icon\">\ud83d\udd11<\/div>\n    <div class=\"bp-content\">\n      <h4>Run CMD with Administrator Privileges<\/h4>\n      <p>When working with certain DNS commands (e.g., the reset command), it is necessary to have administrator privileges before executing the command. Running Command Prompt with administrator privileges guarantees successful command execution without any permission errors.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"bp-item\">\n    <div class=\"bp-icon\">\ud83c\udf10<\/div>\n    <div class=\"bp-content\">\n      <h4>Use Multiple DNS Servers for Verification<\/h4>\n      <p>Avoid making conclusions about the problem based on a single source. Test the same domain from different locations using different DNS servers (e.g., Google DNS, Cloudflare DNS) to quickly determine if the problem exists at your ISP level or at the domain level.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"bp-item\">\n    <div class=\"bp-icon\">\ud83e\uddf9<\/div>\n    <div class=\"bp-content\">\n      <h4>Clear Cache After Any Update\/Change<\/h4>\n      <p>Always clear your system DNS cache using <code>ipconfig \/flushdns<\/code> after updating or changing your DNS records or servers. This forces your system to avoid using old entries and update itself with the current configuration information.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"bp-item\">\n    <div class=\"bp-icon\">\u26a1<\/div>\n    <div class=\"bp-content\">\n      <h4>Use Resolve-DnsName for Advanced Analysis<\/h4>\n      <p>Use Resolve-DnsName in Windows PowerShell to get a more complete and up-to-date reading of DNS records.<\/p>\n    <\/div>\n  <\/div>\n\n  <div class=\"bp-item\">\n    <div class=\"bp-icon\">\ud83d\udce1<\/div>\n    <div class=\"bp-content\">\n      <h4>Check DNS Propagation Before Troubleshooting<\/h4>\n      <p>DNS changes take time to propagate. Before working out the issue, verify the full URL from all over the world to see if the change has propagated completely before troubleshooting the issue further.<\/p>\n    <\/div>\n  <\/div>\n\n<\/div>\n\n\n\n<div class=\"vlt-box \">\n<div class=\"box-title\" style=\"background:#D5EAFF; color:#000\">Strategic Outlook<\/div>\n<div class=\"box-content\" >\n<p>To troubleshoot DNS effectively, follow an organized process rather than just blundering through command-line commands.<\/p>\n\n<p>Your starting point should always be the diagnosis of the problem: are you experiencing issues connecting to one particular site, several sites, or all sites? Is one service, such as email, working while others don\u2019t? Once diagnosed, you can then verify that your machines have been configured correctly from a DNS perspective and that the appropriate DNS servers are specified.<\/p>\n\n<p>Next, flush your DNS cache to remove stale or damaged entries inhibiting proper DNS routing and, if problems persist, backlog procedures by performing a network stack reset to resolve systemic network configuration problems.<\/p>\n\n<p>Finally, each time you make a change during your troubleshooting process, it\u2019s essential to retest connectivity and determine if the problem has been resolved or any additional work is required.<\/p>\n\n<p>By following these steps: Diagnose \u2192 Verify \u2192 Flush \u2192 Reset \u2192 Re-test: You&#8217;ll have an established, logical path to effectively correct the majority of DNS-related problems.<\/p> \n<\/div><\/div>\n\n\n\n<div class=\"vlt-box \">\n<h2 class=\"box-title\" style=\"background:#D5EAFF; color:#000\" id=\"WPT17WPTheme\">FAQs<\/h2>\n<div class=\"box-content\" >\n\n<h3 class=\"box-title\" style=\"background:#D5EAFF; color:#000\">1. Why does Microsoft recommend Resolve-DnsName over nslookup for Windows troubleshooting?<\/h3>\n<p>Resolve-DnsName is a newer PowerShell-based tool with enhanced DNS output. It includes advanced details (such as the record type and its TTL) along with comprehensive error details compared to nslookup. Thus, it&#8217;s mostly recommended and primarily a straightforward utility for performing simple lookups and only provides legacy functionality.<\/p>\n\n<h3 class=\"box-title\" style=\"background:#D5EAFF; color:#000\">2. How do I view my current DNS server IPs using CMD without scrolling through ipconfig \/all?<\/h3>\n<p>You can use the following command, ipconfig \/all | findstr &#8220;DNS Servers,&#8221; to filter and display the DNS server IPs without having to scroll through the entire ipconfig \/all output. This saves time and effort searching through the complete network configuration results.<\/p>\n\n<h3 class=\"box-title\" style=\"background:#D5EAFF; color:#000\">3. What should I do if ipconfig \/flushdns fails with a &#8220;Could not flush the DNS Resolver Cache&#8221; error?<\/h3>\n<p>This issue typically occurs on systems where either the DNS client service has been stopped or disabled. To rectify it, you have to either restart the DNS client service or run CMD as an administrator to attempt flushing the DNS cache again. Sometimes, simply rebooting the machine also resolves this issue, allowing the DNS cache to be flushed as intended.<\/p>\n\n<h3 class=\"box-title\" style=\"background:#D5EAFF; color:#000\">4. What is the difference between ipconfig \/flushdns and ipconfig \/registerdns?<\/h3>\n<p>The command \u2018ipconfig \/flushdns\u2019 clears the local DNS cache from your computer, removing any old and incorrect entries. The command \u2018ipconfig \/registerdns\u2019 renews the local DNS entries from your computer to the DNS server and updates the host name registry and IP address registry in the network resources.<\/p>\n<\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Imagine typing a website address into your browser, expecting the page to load instantly, only to encounter the message, \u201cThis site can\u2019t be reached.\u201d In many cases, the website itself is functioning perfectly\u2014the real reason for this is the DNS. Let&#8217;s decode this. The Domain Name System (DNS) is similar to an Internet phone book&#8230;. <a class=\"read-more\" href=\"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/\">Read More<\/a><\/p>\n","protected":false},"author":1019,"featured_media":50310,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[127],"tags":[],"class_list":["post-50309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology-hub"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues<\/title>\n<meta name=\"description\" content=\"Learn essential DNS commands for Windows to diagnose, test, and fix DNS issues using CMD. Includes nslookup, ipconfig, ping, tracert, and more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues\" \/>\n<meta property=\"og:description\" content=\"Learn essential DNS commands for Windows to diagnose, test, and fix DNS issues using CMD. Includes nslookup, ipconfig, ping, tracert, and more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-23T10:41:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-23T10:41:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-for-windows.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"445\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jyoti Prasad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jyoti Prasad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"23 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/\"},\"author\":{\"name\":\"Jyoti Prasad\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/#\\\/schema\\\/person\\\/2d0a6c8fc820e80c312bea008fd27809\"},\"headline\":\"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues\",\"datePublished\":\"2026-06-23T10:41:18+00:00\",\"dateModified\":\"2026-06-23T10:41:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/\"},\"wordCount\":4965,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/dns-commands-for-windows.png\",\"articleSection\":[\"Technology Hub\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/\",\"name\":\"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/dns-commands-for-windows.png\",\"datePublished\":\"2026-06-23T10:41:18+00:00\",\"dateModified\":\"2026-06-23T10:41:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/#\\\/schema\\\/person\\\/2d0a6c8fc820e80c312bea008fd27809\"},\"description\":\"Learn essential DNS commands for Windows to diagnose, test, and fix DNS issues using CMD. Includes nslookup, ipconfig, ping, tracert, and more.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/dns-commands-for-windows.png\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/dns-commands-for-windows.png\",\"width\":800,\"height\":445,\"caption\":\"dns-commands-for-windows\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/technology-hub\\\/dns-commands-for-windows\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/\",\"name\":\"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/#\\\/schema\\\/person\\\/2d0a6c8fc820e80c312bea008fd27809\",\"name\":\"Jyoti Prasad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/jyoti-prasad-150x150.png\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/jyoti-prasad-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/jyoti-prasad-150x150.png\",\"caption\":\"Jyoti Prasad\"},\"description\":\"Jyoti is a performance-driven Content Strategist with 7+ years of experience in creating knowledge-oriented, engaging, and SEO-focused content. Passionate about transforming ideas into impactful narratives, she specializes in crafting blogs, web content, and digital marketing copy that resonate with readers and drive meaningful engagement.\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/blog\\\/author\\\/jyoti-prasad\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues","description":"Learn essential DNS commands for Windows to diagnose, test, and fix DNS issues using CMD. Includes nslookup, ipconfig, ping, tracert, and more.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/","og_locale":"en_US","og_type":"article","og_title":"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues","og_description":"Learn essential DNS commands for Windows to diagnose, test, and fix DNS issues using CMD. Includes nslookup, ipconfig, ping, tracert, and more.","og_url":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/","og_site_name":"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips","article_published_time":"2026-06-23T10:41:18+00:00","article_modified_time":"2026-06-23T10:41:19+00:00","og_image":[{"width":800,"height":445,"url":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-for-windows.png","type":"image\/png"}],"author":"Jyoti Prasad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jyoti Prasad","Est. reading time":"23 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/"},"author":{"name":"Jyoti Prasad","@id":"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/2d0a6c8fc820e80c312bea008fd27809"},"headline":"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues","datePublished":"2026-06-23T10:41:18+00:00","dateModified":"2026-06-23T10:41:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/"},"wordCount":4965,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-for-windows.png","articleSection":["Technology Hub"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/","url":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/","name":"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues","isPartOf":{"@id":"https:\/\/www.milesweb.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-for-windows.png","datePublished":"2026-06-23T10:41:18+00:00","dateModified":"2026-06-23T10:41:19+00:00","author":{"@id":"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/2d0a6c8fc820e80c312bea008fd27809"},"description":"Learn essential DNS commands for Windows to diagnose, test, and fix DNS issues using CMD. Includes nslookup, ipconfig, ping, tracert, and more.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#primaryimage","url":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-for-windows.png","contentUrl":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2026\/06\/dns-commands-for-windows.png","width":800,"height":445,"caption":"dns-commands-for-windows"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/blog\/technology-hub\/dns-commands-for-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/blog\/"},{"@type":"ListItem","position":2,"name":"DNS Commands for Windows: Diagnose, Test, and Fix DNS Issues"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/blog\/#website","url":"https:\/\/www.milesweb.in\/blog\/","name":"Web Hosting Blogs by MilesWeb | WordPress, Cloud &amp; SEO Tips","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/blog\/#\/schema\/person\/2d0a6c8fc820e80c312bea008fd27809","name":"Jyoti Prasad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2023\/08\/jyoti-prasad-150x150.png","url":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2023\/08\/jyoti-prasad-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/blog\/wp-content\/uploads\/2023\/08\/jyoti-prasad-150x150.png","caption":"Jyoti Prasad"},"description":"Jyoti is a performance-driven Content Strategist with 7+ years of experience in creating knowledge-oriented, engaging, and SEO-focused content. Passionate about transforming ideas into impactful narratives, she specializes in crafting blogs, web content, and digital marketing copy that resonate with readers and drive meaningful engagement.","url":"https:\/\/www.milesweb.in\/blog\/author\/jyoti-prasad\/"}]}},"views":0,"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts\/50309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/users\/1019"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/comments?post=50309"}],"version-history":[{"count":7,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts\/50309\/revisions"}],"predecessor-version":[{"id":50323,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/posts\/50309\/revisions\/50323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/media\/50310"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/media?parent=50309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/categories?post=50309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/blog\/wp-json\/wp\/v2\/tags?post=50309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}