Static DHCP server on Arch Linux in 2021, two ways
November 26, 2021
Turns out it’s 2021 and configuring a static server on at least some
Linux flavours isn’t as easy as editing
/etc/resolv.conf anymore, at
least if you want it to persist across reboots.
Depending on your network stack, I’ll suggest two ways, one might work for you, both work in my case.
/etc/resolvconf.conf, add the following:
/etc/dhcpcd.conf, add the following:
static domain_name_servers=22.214.171.124 126.96.36.199
188.8.131.52 by the DNS servers of you
But that being said, as far as I’m concerned, I went with the third option which is to configure it at the router level! This way every device that connects to it benefits from this configuration if they don’t override it.