For each stage in the cloud-init file, various modules are available that implement different functionality each. This page describes what each one does and how to use it. The order in this document is also the order in which they are executed. dns A way to configure the /etc/resolv.conf file. #cloud-config stages: boot: - name: "Setup dns" dns: nameservers: - 8.8.8.8 - 1.1.1.1 search: - foo.bar options: - .. path: "/etc/resolv.