I don’t really understand what you are trying to achieve here, but the content of /etc/resolv.conf is likely to be dynamically generated by a framwork called resolvconf, when you connect to a network which gives you a DNS server via DHCP for example, so editing it manually may not be permanent. It all depends on your system, but considering that most Linux distros include resolvconf, you are likely to have it.
See $ man /etc/resolv.conf
and$ man resolvconf
If you want to change your default DNS server, you may be able to change it on your router’s configuration, so that it is effective on your hole network, via DHCP.