Can't get rid of an incorrect DNS suffix

Pieter Berghmans 1 Reputation point
2024-12-15T20:24:20.52+00:00

I made a DNS suffix in the properties of my NIC.

Turns out the suffix is wrong.

Whatever I try I can't get rid of it.

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,184 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Digvijay Chauhan 1 Reputation point
    2024-12-15T22:51:30.3433333+00:00

    Hi Pieter!

    Can you provide little more context? That would really help answer the question!

    Does it pertain to a virtual machine that has the NIC with the incorrect DNS suffix?

    Anyhow if that is the case you could try resetting it by:

    • Use Azure CLI or PowerShell to update the NIC settings. Here’s how you might do it with Azure CLI:
        
        az network nic update --resource-group YourResourceGroupName --name YourNicName --dns-servers ""
      
      
      
      
        
      
    • With PowerShell:
        Set-AzNetworkInterface -ResourceGroupName "YourResourceGroupName" -Name "YourNicName" -CustomDnsServers $null
      
      
      
      
      
      

    Don't forget to restart your virtual machine to apply the updates to the DNS configuration. Finally, ensure that no custom configurations in your NSGs or custom route tables are causing conflicts or misconfigurations. If you've tried all the above steps and the DNS suffix issue persists, consider contacting Azure support as there might be a deeper integration or setting that's causing the problem.

    Hope that helps!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.