The default DNS configuration for your Ubuntu VM will depend on the version of Ubuntu you are using as well as your VNET settings. The Azure DNS IP address is 168.63.129.16 and can be obtained via DHCP. I am sharing the Ubuntu 20.04 DNS settings for my VM in case it might be helpful to you or others.
/etc/systemd/resolved.conf
[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=no-negative
#DNSStubListener=yes
#ReadEtcHosts=yes
/etc/resolv.conf
nameserver 127.0.0.53
options edns0 trust-ad
search uqqalz50zzjuhhb31pwfnbhtxb.xx.internal.cloudapp.net
resolvectl status
Link 2 (eth0)
Current Scopes: DNS
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 168.63.129.16
DNS Servers: 168.63.129.16
DNS Domain: uqqalz50zzjuhhb31pwfnbhtxb.xx.internal.cloudapp.net
If you want to use a custom DNS server I recommend configuring this in your VNET settings rather than apply this static configuration on your VMs. You can find more details about this in DNS Name Resolution options for Linux virtual machines in Azure and Name resolution for resources in Azure virtual networks.
Hope this helps! Let me know if you have any follow-up questions or need further assistance.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!