PERL : Libconf::Glueconf::Networking::Resolv C/PYTHON/RUBY : Networking/Resolv
Libconf::Glueconf::Networking::Resolv is a template to handle the /etc/resolv.conf style files.
$resolv = new Libconf::Glueconf::Networking::Resolv({filename => 'resolv.conf' }); push(@{$resolv->{nameserver}}, '192.168.76.7'); $resolv->write_conf();
creates the template
$resolv = new Libconf::Glueconf::Networking::Resolv({ .. arguments .. })
the options are the same as in the Libconf::Templates::Resolv manpage, look there to have the details.
See <Libconf::Glueconf> for general methods