How To: Make Sure /etc/resolv.conf Never Get Updated By DHCP Client

last updated in Categories , , , , , , , ,

Q. I’m using GNU/Linux with the Internet Systems Consortium DHCP Client. dhclient, provides a means for configuring one or more network interfaces using the Dynamic Host Configuration Protocol. It also updates my /etc/resolv.conf each time my laptop connects to different network. I would like to keep my existing nameservers. How do I skip /etc/resolv.conf update?