Skip to content

Instantly share code, notes, and snippets.

@mekb-turtle
Created August 9, 2022 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mekb-turtle/a5571b1cc1867f2b6100d60666f37739 to your computer and use it in GitHub Desktop.
Save mekb-turtle/a5571b1cc1867f2b6100d60666f37739 to your computer and use it in GitHub Desktop.
stop dhcpcd from overriding resolv.conf
#controlgroup wheel
#hostname
#clientid
duid
persistent
vendorclassid
#option domain_name_servers, domain_name, domain_search
option classless_static_routes
option interface_mtu
option host_name
#option ntp_servers
option rapid_commit
require dhcp_server_identifier
#slaac hwaddr
slaac private
noipv4ll
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = dhcpcd
[Action]
Description = Removing resolv.conf settings on dhcpcd
When = PostTransaction
Exec = /usr/bin/rm -v '/usr/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment