Public bug reported: The dns servers and search domain was NOT written to /etc/netplan/50 -cloud-init.yaml when customize a Ubuntu18.04 Server with DHCP IP and DNS servers/search domain.
>From cloud-init.log, I can see it applying network configuration with dns >servers and search domain: 2018-06-12 09:50:19,852 - stages.py[INFO]: Applying network configuration from ds bringup=False: {'version': 1, 'config': [{'type': 'physical', 'name': 'ens160', 'mac_address': '00:50:56:bd:45:d2', 'subnets': [{'control': 'auto', 'type': 'dhcp'}]}, {'type': 'nameserver', 'address': ['10.117.21.1', '10.117.21.2'], 'search': ['dns.test.com']}]} To attach cloud-init logs by 'cloud-init collect-logs' and 50-cloud-init.yaml Note: If customize the same VM with Static IP and DNS servers/search domain, they will be written to /etc/netplan/50-cloud-init.yaml correctly. ** Affects: cloud-init (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1776452 Title: Fail to set DNS server and search domain when customize Ubuntu18.04 to DHCP IP by cloud-init To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1776452/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs