I am using ubuntu 12.04. How do I change /etc/resolv.conf file ?
Every time I edit it, it automatically gets reset. If I want to retain changes in the file what needs to be done. When I browsed through internet I found some solutions one of them was:
- Adding the nameserver to
/etc/resolvconf/resolv.conf.d/head - Adding the nameserver to
/etc/resolvconf/resolv.conf.d/base
But even after adding the nameserver to above mentioned files and restarting the services, the /etc/resolv.conf automatically gets reset.
I want to permanently retain changes in /etc/resolv.conf file.