How to change Azure Labs VM DNS setting to soemthing else than 168.63.129.16?

TH2022 1 Reputation point
2022-07-12T23:35:29.077+00:00

Hi,

I need to change the DNS server settings on the Azure Labs VM from the Azure default one 168.63.129.16, assigned by DHCP, to another DNS server such as 8.8.8.8, but it seems that Azure blocks outbound UDP/53 (DNS ports) requests. TCP/53 works!

Is there a way to do this? or somehow be able to modify the DNS server on the lab Windows VMs!?

Thanks,

Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
308 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. srbhatta-MSFT 8,586 Reputation points Microsoft Employee
    2022-07-18T09:45:35.093+00:00

    Hello @TH2022 ,
    Welcome to Microsoft QnA and apologies for the delay in response.
    I am assuming you are trying to change the DNS server form within the VM's OS (from ncpa.cpl), however that is not recommended.
    The recommended way to change the DNS settings for a VM would be to directly change the DNS IP from the nic settings via Azure Portal. Go to the VM->Networking-> Select the network interface -> DNS Servers -> Enter the custom DNS server IP.

    Reference : https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-name-resolution-for-vms-and-role-instances#specify-dns-servers

    Hope this helps. Please feel free to reach back to me via comments incase you have further queries. Thanks.


  2. srbhatta-MSFT 8,586 Reputation points Microsoft Employee
    2022-07-25T10:04:22.943+00:00

    @TH2022 ,
    Are you using Dev Test lab VMs or Azure Lab services VMs?
    If you have not created the lab setup, and are a lab user, then you will not be able to view the lab VMs under Virtual machines tab of the Azure Portal.
    The user who creates the lab can only see the lab VMs under Virtual machines tab on Portal.
    This is the reason why, you cannot modify the DNS settings for lab VMs.

    Check out the difference between Devtest lab and Azure lab services VMs here. You cannot make infrastructural changes to Devtest lab VMs unless you are the lab administrator. For Azure Lab services VMs, entire infrastructure is managed by Azure.

    Hope this clarifies your doubt.

    Please click on "Accept as answer" if you find the information provided useful so that it can help others in the community looking for help on similar queries.

    0 comments No comments

  3. TH2022 1 Reputation point
    2022-07-26T02:52:58.987+00:00

    Hi,

    It is "Azure Labs VM", I made sure that was added to the title when I first posted the Q :-)

    I have a lab setup.
    I am the admin.
    Template VM: Windows 10
    I have admin access to the template Windows 10 VM.

    Hence my question about changing the DNS settings ==> "How to change Azure Labs VM DNS setting to something else than 168.63.129.16?"

    Regards,


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.