How to Repair “DNS server not authoritative for zone” CMD Error on Windows PC

If you try to run CMD shortcuts from non-default locations, you may get the message “The DNS server is not authoritative for this zone”. This can also prevent you from performing an important task. Let’s look at some methods to help you troubleshoot this problem.

The full error message has the following description:

The system cannot find a test for the message in the application file, the DNS server is not authoritative for this zone.

What is the reason for “The DNS server is not authoritative for this zone”?

Hard disk error: A hard disk error may also be the cause of this particular error message. If this scenario applies, you can probably solve the problem by performing a CHKDSK scan to check the integrity of the system metadata and replace bad sectors with good ones.

Damaged system file: It looks like this particular problem may be caused by a corrupted system file or an error in the registry. If this scenario applies, you can solve the problem with some built-in utilities that can repair corrupted system files (SFC and DISM). In more serious cases, you may need to upgrade all operating system components by performing a restore or reinstallation.

How to remove the “DNS server cannot resolve zone” error message?

Setting up a new shortcut

Some users have also eliminated the “DNS server cannot resolve zone” error by creating a new shortcut.

  1. Right-click on the desktop and select New > Shortcut.
  2. Then type “%COMSPEC%” in the Enter Location text box.
  3. Click the Next button.
  4. Enter “Command Prompt” in the Enter Name text box.
  5. Select Done to add the shortcut to the desktop.

Launch a scan to check the system files

Some users have confirmed that running a scan of system files using the command prompt fixes the error.

  1. Press the Windows + X key combination.
  2. Press Command Prompt (Admin) to open the CP window.
  3. Before running the SFC scan, type “DISM.exe /Online /Cleanup-image /Restorehealth” at the command prompt and press Return.
  4. Then at the prompt, type “sfc /scannow” and press Enter.
  5. Wait for the SFC scan to complete, which may take about 30 minutes or more.
  6. If the results of the scan show that Windows resource protection has fixed something, reboot your desktop or laptop.

Open a command prompt in the appropriate folder

The “DNS server is not authoritative for the zone” error message may be caused by users opening the command line in a location other than the default shortcut, such as the Quick Launch toolbar. So try opening the command prompt from its folder.

  1. Press the Windows + S key combination.
  2. Type “cmd” in the search box that opens.
  3. Right-click at the command prompt and select Open File Location to open the folder.
  4. Right-click on the command line in the Windows system folder and select Run as Administrator.

Frequently Asked Questions

  1. Open the DNS Manager.
  2. In the console tree, right-click the zone in question and select Properties.
  3. Click the Name Servers tab.
  4. Click Add.
  5. Specify additional DNS servers by name and IP address, and then click Add to add them to the list.

  1. Reboot your router.
  2. Uninstall any additional security software.
  3. Run the Windows network troubleshooter.
  4. Clean DNS.
  5. Reset TCP/IP with netsh command.
  6. Enter the IP address manually.
  7. Make sure DNS is obtained automatically.
  8. Use OpenDNS or Google DNS.

The "DNS server is not authoritative for the zone" error usually occurs when Windows users try to use certain CMD or Phyton commands via the terminal. In general, this problem prevents affected users from running commands that do not invoke built-in utilities.

DNS errors occur mainly because you cannot connect to an IP address, which means that you no longer have access to the network or the Internet. DNS stands for Domain Name System. In other words, DNS translates your web domain name into an IP address and vice versa.