ArchLinux: Stop dhcp from overwriting resolv.conf(Linux Only)

Here is a Quick tip for people using Archlinux:

Sometimes we don't want dhcpcd overwriting our resolv.conf anymore, since it is customized. We do, however, want dhcpcd to continue to automatically set out IP, default gateway, et cetera. To cause this effect we will edit /etc/conf.d/dhcpcd as root, with our favorite editor. The directive we are looking for is DHCPCD_ARGS and by default that directive should look like the following figure:

> DHCPCD_ARGS="-t 30 -h $HOSTNAME"

To that directive, add the -R flag. Your directive line should look something like the following figure:

> DHCPCD_ARGS="-t 30 -h $HOSTNAME -R"

Taken from Archwiki