Tuesday, 1 October 2013

How to configure DNS nameservers for Ubuntu cloud machines non-interactively?

How to configure DNS nameservers for Ubuntu cloud machines non-interactively?

I want to setup custom nameservers for my Ubuntu cloud instances (which
have static IPs). When I try to edit /etc/resolv.conf, I see that it gets
overwritten on reboot.
If I try to set it in /etc/network/interfaces it works, but this would is
not friendly to script. Is there a easier way to script this so that the
setting remains persistent across reboots?

No comments:

Post a Comment