Skip to content

feat(sysconfig): Add DNS from interface config to resolv.conf (#5401)

Ani Sinha requested to merge anisinha/cloud-init:fix-44334 into c10s

Jira: https://issues.redhat.com/browse/RHEL-44334

c9s PR: !88 (closed)

sysconfig renderer currently only uses global dns and search domain
configuration in order to populate /etc/resolv.conf. This means it ignores
interface specific dns configuration completely. This means, when global dns
information is absent and only interface specific dns configuration is present,
/etc/resolv.conf will not have complete dns information. Fix this so that
per interface dns information is also taken into account along with global dns
configuration in order to populate /etc/resolv.conf.

Fixes: GH-5400

No conflicts.

Merge request reports