sonic-buildimage/files
Oleksandr Ivantsiv d1fa414f1b
Clear DNS configuration received from DHCP during networking reconfiguration in Linux. (#13516) (#13695)
- Why I did it
fixes #12907

When the management interface IP address configuration changes from dynamic to static the DNS configuration (retrieved from the DHCP server) in /etc/resolv.conf remains uncleared. This leads to a DNS configuration pointing to the wrong nameserver. To make the behavior clear DNS configuration received from DHCP should be cleared.

- How I did it
Use resolvconf package for managing DNS configuration. It is capable of tracking the source of DNS configuration and puts the configuration retrieved from the DHCP servers into a separate file. This allows the implementation of DNS configuration cleanup retrieved from DHCP during networking reconfiguration.

- How to verify it
Ensure that the management interface has no static configuration.
Check that /etc/resolv.conf has DNS configuration.
Configure a static IP address on the management interface.
Verify that /etc/resolv.conf has no DNS configuration.
Remove the static IP address from the management interface.
Verify that /etc/resolv.conf has DNS configuration retrieved form DHCP server.
2023-02-10 09:11:05 -08:00
..
Aboot Use tmpfs for /var/log for Arista 7260 (#13587) 2023-02-03 04:32:29 +08:00
apt [Build] Support j2 template for debian sources (#12557) (#13185) 2022-12-30 09:47:33 +08:00
build/versions [Security][202205] Upgrade the openssl version to 1.1.1n-0+deb11u4+fips #13737 (#13759) 2023-02-10 12:01:22 +00:00
build_scripts During build time mask only those feature/services that are disabled excplicitly (#13283) (#13296) 2023-01-09 10:28:03 -08:00
build_templates Add support for platform topology configuration service (#12066) (#13605) 2023-02-03 06:34:17 +08:00
dhcp ZTP infrastructure changes to support DHCP discovery provisioning data (#3298) 2019-12-10 08:16:56 -08:00
docker Enabling ipv6 support on docker container network. This is needed (#5418) 2020-09-22 08:32:17 -07:00
image_config Clear DNS configuration received from DHCP during networking reconfiguration in Linux. (#13516) (#13695) 2023-02-10 09:11:05 -08:00
initramfs-tools [202205][Arista] Add initial support for 720DT-48S (#10656) (#11860) 2022-08-30 12:39:26 +08:00
scripts change default to be on (#13495) (#13498) 2023-01-25 09:58:53 -08:00
sshd Remove SSH host keys after installing the custom version of sshd (#10633) 2022-04-25 10:38:52 -07:00