New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian 10/9/8 DNS configuration bug #3486
Comments
Launchpad user Dmitry Shemin(dshemin) wrote on 2019-10-29T12:45:21.422366+00:00 Launchpad attachments: cloud-init.tar.gz |
Launchpad user Ryan Harper(raharper) wrote on 2019-10-30T15:34:35.067799+00:00 Thanks for filing the bug. Cloud-init itself does not render /etc/resolv.conf on Ubuntu/Debian; In Ubuntu, the resolvconf package is installed which handles maintain /etc/resolv.conf. Looking at: https://cdimage.debian.org/cdimage/openstack/current-10/debian-10-openstack-amd64-packages.list resolvconf package is not present, hence the bug. I would suggest that the images include this package. That said, cloud-init could detect if resolvconf is not present and render resolv.conf directly. |
Launchpad user Adam Conrad(adconrad) wrote on 2019-10-30T15:53:08.950232+00:00
This hasn't been true for years. That said, it's still handled "magically" today, just that now we do it with systemd-resolved. |
Launchpad user Ryan Harper(raharper) wrote on 2019-10-30T16:08:06.595966+00:00 In the context of Ubuntu images which still use ifupdown by default (Xenial); they also include resolvconf which is what manages resolv.conf. As you note, newer Ubuntu uses systemd-resolved as replacement for resolvconf; cloud-init on Ubuntu does not directly render contents into /etc/resolv.conf for these reasons. |
Launchpad user Dmitry Shemin(dshemin) wrote on 2019-10-30T18:03:52.568215+00:00 The documentation says that the 'resolvconf' package is optional for Debian. https://wiki.debian.org/NetworkConfiguration#Defining_the_.28DNS.29_Nameservers
But I think it's worth doing something about it. |
Launchpad user Brian King(inflatador) wrote on 2020-05-29T17:17:00.830918+00:00 I'm affected as well. Running an Openstack cloud with the config-drive and static IP information. The DNS servers are in the network-data.json file, but cloud-init on Debian 10 does not set the DNS servers unless the resolvconf package is present. |
Launchpad user TJ(zimmertr) wrote on 2020-08-26T21:52:27.905610+00:00 I'm affected as well. Got around this like so: write_files:
|
This bug was originally filed in Launchpad as LP: #1850310
Launchpad details
Launchpad user Dmitry Shemin(dshemin) wrote on 2019-10-29T12:45:21.422366+00:00
I use cloud-init with NoCloud data source for configuring my VM's and got strange bug with DNS configuration on official Debian images like https://cdimage.debian.org/cdimage/openstack/current-10/debian-10-openstack-amd64.qcow2.
My network config:
After creating new VM I got next configuration in /etc/network/interfaces.d/50-cloud-init.cfg which is seems ok:
But /etc/resolv.conf contains:
Which leads to the fact that I can’t resolve any domain name, for example:
The text was updated successfully, but these errors were encountered: