I have a private network with several OpenWrt routers connecting some local subnets. I use NAT on a couple of the routers to give access to the internet via different providers.
I run a local DNS recursive caching resolver (Unbound) and that serves all my clients on all the local subnets.
Each router handles DHCP for its local subnets and assigns hostnames. But all the subnets are under my-example.com. (So a client of router 1 might be 'client1.router1.my-example.com')
I would like to have all my routers report their DHCP clients to the main DNS-providing router, so that any client on any local subnet can reach any other client by name. (Routing already works; I can reach any from any by IP address.)
It seems like I need something like a private Dynamic DNS setup on my main DNS machine, but I'm not finding a suitable package.
How can I make all my local DHCP client names (from all the subnets under different routers) available to all the other clients in my local network?
dnsmasq
is the default DNS/DHCP server in OpenWrt, unless using IPv6, which is handled byodhcpd
unless manually configured otherwise.dnsmasq
is optional - it's the default unless manually configured otherwise.