Quick and simple: here's a dnsmasq configuration to have DHCP and DNS from a local server on your network.
First, install dnsmasq and prepare a folder for configurations. I'm using Ubuntu as an example:
apt update && apt install -y dnsmasq
mkdir /etc/dnsmasq
Now,