Hello!
My system is centos7.6
But I am reboot system, Cat /etc/resolv.conf ,The changed DNS has not changed.
Then manually add the module configuration in /etc/cloud/cloud.cfg
But I am reboot system, Cat /etc/resolv.conf ,The changed DNS has not changed.
At present, changing the IP and username and password in cloud-init is effective, only DNS_server is invalid
My system is centos7.6
But I am reboot system, Cat /etc/resolv.conf ,The changed DNS has not changed.
Then manually add the module configuration in /etc/cloud/cloud.cfg
Code:
/etc/cloud/cloud.cfg
cloud_config_modules:
- locale
- set-passwords
- resolv_conf
- puppet
- chef
- timezone
- runcmd
#cloud-config
manage_resolv_conf: true
resolv_conf:
nameservers: ['114.114.114.114', '8.8.8.8']
options:
rotate: true
timeout: 1
But I am reboot system, Cat /etc/resolv.conf ,The changed DNS has not changed.
At present, changing the IP and username and password in cloud-init is effective, only DNS_server is invalid
Last edited: