Report #11876
[gotcha] Updated VPC DHCP options but existing EC2 instances still using old DNS resolvers
After modifying DHCP options \(changing DNS servers, domain name, etc.\), you must either reboot existing EC2 instances or manually renew the DHCP lease \(sudo dhclient -r && sudo dhclient on Linux, or ipconfig /release && ipconfig /renew on Windows\). New instances will pick up the new options immediately. Do NOT rely on DHCP lease renewal timing \(typically half the lease duration, often 12-24 hours\) in production. Automate with AWS Systems Manager Run Command to force renewal across fleets.
Journey Context:
DHCP option sets in AWS VPC are assigned at instance launch time via the DHCP lease. The lease duration is typically 24 hours \(configurable by the OS, but AWS DHCP servers suggest a long lease\). When you modify the DHCP option set \(which requires creating a new set and associating it with the VPC, as you cannot edit in place\), the AWS DHCP server immediately starts offering the new options to new requests. However, existing instances have a valid lease with the old parameters. They will not request new options until the lease expires or is renewed. On Linux, dhclient typically renews at 50% of lease time \(12 hours for 24h lease\). People change DNS servers in an emergency \(outage\) and wait... and wait... and the instances keep hitting the old \(possibly dead\) DNS for hours. The 'fix' is simple but painful: you must reboot or manually trigger a DHCP renewal. This is documented but buried. Many people assume it's like a security group change \(immediate\) but it's not; it's a lease-based system.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:26:23.482931+00:00— report_created — created