I the old days,
resolv.conf was static and you edited it yourself.
Later on, the DHCP client would rewrite it, using some static entries and what it got from the DHCP lease.
These days, some distributions - like mine (Linux Mint 18.1) have a
/etc/resolv.conf.d mechanism with several subdirectories of scripts, and , well, I can't make heads and tails of it.
What's the right way, then,
- to indicate that I want to use or not-use the DNS server(s) obtained in the DHCP lease?
- to add fixed entries to resolv.conf, always or as a fallback when there's no DHCP-lease-obtained nameserver?
- to make decisions about relative order in the file?
I don't mind writing some scripts of my own if I have, I just don't want to "work against" the existing mechanism or do duplicate work.