Tyblog | Building my ideal router for $50

Hi @Morta! Here’s the relevant parts of my dnsmasq.conf. I have a couple of extra cname= and similar entries for some other names I have setup note that there are a few things specific to my setup here:

  • I start the DHCP range at 5 since I have a few reserved static IPs.
  • The last few lines are there only because I have dnsmasq configured for PXE booting, they’re not necessary for the functionality described in this blog post.
  • The conf-dir= option is also just optional, I have some dynamically-generated files there.
  • server=/consul/127.0.0.1#8500 lets any requests for foo.service.consul resolve from any host in my LAN.
domain-needed
bogus-priv
server=/consul/127.0.0.1#8600
no-hosts
domain=<my domain>
expand-hosts
conf-dir=/etc/dnsmasq.d
interface=br0
dhcp-range=192.168.1.5,192.168.1.250,255.255.255.0,24h
dhcp-option=option:router,192.168.1.1
address=/router/192.168.1.1
dhcp-boot=ipxe.a56af4e6a9a9.pxe
enable-tftp
tftp-root=/srv/ftp