Remix.run Logo
Arch-TK 4 days ago

At home I have an openbsd box as my network gateway running unbound and nsd. Unbound handles the caching and recursion, nsd handles the local name resolution.

I have a small utility (made up of two shell scripts and a python script) which watches /var/db/dhcpd.leases for changes and parses it to produce the zonefiles for nsd.

Edit: https://paste.rs/vgr7t.txt

ninkendo 4 days ago | parent [-]

Y’know the script approach sounds like a good idea.

I also have an OpenBSD box similar to what you describe, but I run ISC dhcpd and BIND because it’s the only setup that does old-school dynamic DNS where the dhcp server sends zone updates to BIND when a lease happens.

But I hate BIND, and not to mention this setup doesn’t work with DHCPv6 (no idea why, it should in principal…) maybe I should just do the “script to read the leases and generate the zone file” approach instead.

JdeBP 4 days ago | parent | next [-]

The world has been waiting for a DHCP and content DNS server that simply share a common database back-end, meaning no notifications/updates/scripts, for decades. See https://news.ycombinator.com/item?id=44395279 for more.

Arch-TK 4 days ago | parent | prev [-]

Depends on bash, inotify-tools, ldns-utils, python

https://paste.rs/vgr7t.txt

Enjoy