[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Change DNS address permanently on debian cloud image



On 2022-08-12 07:44:39 +0000 (+0000), Dimitris Paraskevopoulos wrote:
> I am trying to set a custom DNS server address within the
> debian-cloud-image.
[...]
> Is there a better way to this than writing a script to install
> resolvconf and edit the head file?

If the problem is that you're fighting cloud-init, you can
explicitly configure resolv.conf settings directly through it
instead, even by supplying userdata at server creation time so that
you don't need to alter the image at all. See its documentation for
more details:

https://cloudinit.readthedocs.io/en/latest/topics/modules.html#resolv-conf

-- 
Jeremy Stanley

Attachment: signature.asc
Description: PGP signature


Reply to: