But what should I do if I just want to append a nameserver to somewhere in the resolv.conf auto-generated everytime?
For example, using dnsmasq you have to add "nameserver 127.0.0.1" to the begining of resolv.conf followed by the DNS information auto-generated from dhcpcd, in order to enable the dns local caching.