DHCP settings
Using DHCP settings, you can configure the same DNS and NTP servers in your subnet used in your corporate network infrastructure which is accessible via a VPN or Yandex Cloud Interconnect. DHCP settings also allow you to assign a domain name or DNS suffix, which will be allowed by the specified DNS server.
You can set the following parameters:
- DNS domain for searching unqualified names. It is commonly used with the DNS server address to simplify access to resources in an enterprise infrastructure. This option does not affect the name assigned to a VM in Yandex Cloud.
- DNS server addresses.
- NTP server addresses.
Changing DHCP settings may prevent VMs from accessing managed database services. To avoid that, you can:
- In DHCP settings, specify the second address from the dedicated subnet (
x.x.x.2
) as the default DNS server. - Specify the default DNS server address as the DNS forwarder for the
*.mdb.yandexcloud.net
zone on the DNS server in your network.
If you specify DHCP settings for an existing subnet with running Kubernetes virtual machines or nodes, they will apply to these Kubernetes VMs or nodes after you reboot them.
To avoid rebooting the Kubernetes VM and node after changing DHCP settings in the subnet, request a new DHCP lease. To do this, run the following command in the Kubernetes VM or node OS:
sudo netplan apply
Check the settings update. For example, to view the current list of DNS servers, run the following command:
sudo netplan ip leases eth0 | grep -i dns