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

Change DNS address permanently on debian cloud image



Hello,

I am trying to set a custom DNS server address within the debian-cloud-image.

I tried something like this

`virt-customize -a debian-cloud-image.qcows --run-command "echo 'nameserver 1.1.1.1' > /etc/resolv.conf" but this probably doesn't work for a couple of reasons (Not sure if DNS server gets the updated settings and don't think the changes are persisted

Is there a better way to this than writing a script to install resolvconf and edit the head file?

Cheers

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: