On 11/09/12 16:00, Sandra Schlichting wrote:
> Hi all =)
> 
> Does anyone know of a module that can configure the DNS on Ubuntu 12.04
> clients?
> 
> This module works for CentOS and Ubuntu < 12.04
> 
> http://forge.puppetlabs.com/saz/resolv_conf
> 
> but in Ubuntu 12.04 you can't just overwrite the /etc/resolv.conf
> anymore. DNS have to be set in /etc/network/interfaces

Not necessarily. I have not tried this myself yet, but you can put
static DNS settings in /etc/resolvconf/resolv.conf.d/{head,base,tail}.
Afterwards call "service resolvconf restart". See here for details:
http://www.stgraber.org/2012/02/24/dns-in-ubuntu-12-04/

You should be able to adapt the resolv_conf module accordingly, or write
your own.

Andreas

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to