For the complete documentation index, see llms.txt. This page is also available as Markdown.

DHCP Options Set

A DHCP options set configures network parameters for every instance in the subnets it is associated with: custom DNS server addresses and the IP address lease time. Options sets are associated with subnets and apply to every vNIC in the subnet, primary and secondary. Combined with private authoritative domains, instances can reach each other by hostname or fully qualified domain name instead of fixed IP addresses.

How It Works

With an options set on the subnet, instances get custom DNS via DHCP
  1. The instance starts and sends a DHCP request. The DHCP service returns the private IP address together with the custom DNS servers and lease time from the options set, and the DHCP client inside the instance applies them.

  2. When the instance resolves a domain name, it queries the custom DNS servers.

Supported Options

Option
Format
Description

IPv4 DNS addresses

String

IPv4 DNS server IPs, up to 4, separated by commas (,)

IPv6 DNS addresses

String

IPv6 DNS server IPs, up to 4, separated by commas (,)

IPv4 lease time

Unsigned integer

In hours. Range: 24–1,176 or 87,600–175,200. Default: 24

IPv6 lease time

Unsigned integer

In hours. Range: 24–1,176 or 87,600–175,200. Default: 24

Association Rules

  • A subnet can be associated with at most one options set; an options set can be associated with multiple subnets.

  • You can specify an options set when creating a subnet, or change or remove the association later.

  • An options set affects only DNS and lease time. It doesn't change a vNIC's IP address, gateway, or MTU.

Value Precedence

The DNS servers and lease time an instance receives are resolved in this order; if an item isn't set, the next one applies:

  1. The settings in the options set associated with the subnet.

  2. The subnet's own DNS settings (DNS only).

  3. Platform defaults: platform-provided DNS and a 24-hour lease.

When Changes Take Effect

After you change an options set or a subnet's association, the platform delivers the new configuration the next time the instance sends a DHCP request; it doesn't push changes to running instances. Changes usually take effect automatically when the instance renews its lease at the halfway point of the lease time. To apply them immediately, request a new lease inside the instance:

  • Linux: dhclient -r eth0 && dhclient eth0, or nmcli connection up <connection-name>, or reboot the instance.

  • Windows: ipconfig /release, then ipconfig /renew.

Note: The longer the lease time, the longer the renewal interval — and the longer it takes for options set changes to apply automatically. Requesting a new lease may briefly interrupt the network, so do it through a console connection such as VNC.

Last updated