How do I add changes resolv.conf without getting overwritten?

Posted by Sam on Ask Ubuntu See other posts from Ask Ubuntu or by Sam
Published on 2012-06-28T13:54:25Z Indexed on 2012/06/28 15:24 UTC
Read the original article Hit count: 274

Filed under:

I have migrated to 12.04 from 7.10 finally. I have one last part to complete but I am stumped. I am using puppet on each server, and in the past have used resolv.conf to point to my search to the puppetmaster.

search puppetmaster.com
nameserver 192.168.1.XXX

When trying to use the file on 12.04 resolv.conf the file gets over written when rebooted. I cannot use a static IP for these, so using the /etc/network/interfaces to help me out is a nill point.

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1

Is there a way to get resolvconf to handle this either in the head, tail or base. If there is, are there any examples I can use to tweak on my server.

Any help is much appreciated.

© Ask Ubuntu or respective owner

Related posts about resolv.conf