An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Hello @Erik Svensson ,
As mentioned by @Jackson Martins , you don't need to configure the subnet mask and default gateway in Azure. It is automatically done by the platform.
You cannot set/change the default gateway in Azure. The first IP (x.x.x.1) in a subnet is reserved by Azure for the default gateway as mentioned here.
Associating a Public IP is done via Azure portal/PowerShell/CLI as mentioned in the below docs:
https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/associate-public-ip-address-vm
However, if you want to change any of Azure's default routing, you can do so by creating a route table.
Please refer: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
You should never manually assign the public IP address assigned to an Azure virtual machine within the virtual machine's operating system. Azure translates a virtual machine's private IP address to a public IP address. As a result, a virtual machine's operating system is unaware of any public IP address assigned to it, so there is no need to ever manually assign a public IP address within the operating system. This is by design behavior in Azure.
If you are using multiple NICs on your VM and are configuring the private IP address to the OS of the VM, then you need to follow the below doc:
Coming to PowerDNS, I'm not sure if you are using the Azure Marketplace listed app but it says the installation includes their support package. And their support team is available for any queries at Hossted. Maye you could take a look and reach out to them for further assistance. Since PowerDNS is listed in Azure Marketplace, their support team should have the relevant guides or information about the proper configuration.
https://azuremarketplace.microsoft.com/en-us/marketplace/apps/meanio.linnovate-powerdns?tab=overview
Azure uses Network Address Translation (NAT) to provide Internet access to resources in a private network. NAT is used to modify network requests from the private network and destined to the Internet, allowing multiple computers to share a single public IP address. NAT is applicable to Azure Virtual Networks where all session hosts reside. When a session host tries to reach the network address on the Internet, the NAT Gateway (either your own or default provided by Azure), or Azure Load Balancer performs the address translation.
For more information about various types of Source Network Address Translation, please refer the below docs:
https://learn.microsoft.com/en-us/azure/virtual-network/network-overview#ip-addresses
https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections
https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/default-outbound-access
My last question is if Azure use NAT for (fe80.. addresses) ipv6 addresses for the VMs?
Yes, when a VM initiates outbound communication with a public Internet IPv6-connected device, its source IPv6 address will be network address translated (NAT) to the public IPv6 address of the load balancer.
Refer: https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/ipv6-overview
https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-ipv6-overview
https://learn.microsoft.com/en-us/azure/load-balancer/load-balancer-ipv6-for-linux?tabs=redhat
https://learn.microsoft.com/en-us/azure/load-balancer/ipv6-add-to-existing-vnet-powershell
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.