← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1850310] [NEW] Debian 10/9/8 DNS configuration bug

 

Public bug reported:

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:

```
version: 2
ethernets:
  eth0:
    set-name: eth0
    match:
      macaddress: <MAC address>
    addresses: [ <IP address> ]
    gateway4: <GATEWAY ADDRESS>
    nameservers:
      addresses: [8.8.8.8,8.8.4.4]
```

After creating new VM I got next configuration in
/etc/network/interfaces.d/50-cloud-init.cfg which is seems ok:

```
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 10.52.240.11/16
    dns-nameservers 8.8.8.8 8.8.4.4
    gateway 10.52.1.1
```

But /etc/resolv.conf contains:

```
nameserver 127.0.0.1
```

Which leads to the fact that I can’t resolve any domain name, for example:
```
# resolvectl query google.com
google.com: resolve call failed: All attempts to contact name servers or networks failed
```

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Attachment added: "cloud-init.tar.gz"
   https://bugs.launchpad.net/bugs/1850310/+attachment/5301131/+files/cloud-init.tar.gz

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1850310

Title:
  Debian 10/9/8 DNS configuration bug

Status in cloud-init:
  New

Bug description:
  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:

  ```
  version: 2
  ethernets:
    eth0:
      set-name: eth0
      match:
        macaddress: <MAC address>
      addresses: [ <IP address> ]
      gateway4: <GATEWAY ADDRESS>
      nameservers:
        addresses: [8.8.8.8,8.8.4.4]
  ```

  After creating new VM I got next configuration in
  /etc/network/interfaces.d/50-cloud-init.cfg which is seems ok:

  ```
  auto lo
  iface lo inet loopback

  auto eth0
  iface eth0 inet static
      address 10.52.240.11/16
      dns-nameservers 8.8.8.8 8.8.4.4
      gateway 10.52.1.1
  ```

  But /etc/resolv.conf contains:

  ```
  nameserver 127.0.0.1
  ```

  Which leads to the fact that I can’t resolve any domain name, for example:
  ```
  # resolvectl query google.com
  google.com: resolve call failed: All attempts to contact name servers or networks failed
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1850310/+subscriptions


Follow ups